Cool3:Patches & Enhancements for Afterstep v1.0 by Rob "Commander Taco" Malda malda@cs.hope.edu http://www.cs.hope.edu/~malda/ May 24/97 WHAT IT DOES Enhance afterstep v1.0 in the following ways; BUG FIXES - The left hand bottom corner control was crooked under some circumstances. - Colors on the control bar of active windows had inactive colors. WHAT IT ADDS - XPM textures can be placed on root menu titles & items. - Titlebar icons can be shaped, and have a 'clicked' and 'unclicked' state. - TitleTextMode gives you a bit more control to have 3d beveled titlebar text. - Shaped root menu XPMs - Large XPMs can cover the whole root menu - XPM arrows (Doesn't work very well) HOW TO APPLY THE PATCH use patch. Duh. change to your Afterstep-1.0/afterstep directory and do like patch -p0 < /somewhere/cool3.diff if it asks you questions, let it do what it wants. make clean ; make ; cp afterstep /whereeveryouwantit Please /don't/ email about how to do this guys! I'm busy! HOW TO MODIFY YOUR STEPRC TO USE IT SECTION NUMBER 1:XPM Textures on Root Windows It's about time somebody did it ;) First off, I extended TextureTypes to allow the 4th & 5th items (Menu Root & Menu Item) to also accept 128 to designate pixmaps. +----Root Menu ie | +Menu Items TextureTypes 128 128 128 128 128 and then tell Afterstep what Icons to use like this: MTitlePixmap /somewhere/some.xpm MenuPixmap /somewhere/someother.xpm MArrowPixmap /somewhere/atinty.xpm * This is not really working yet. Be careful, I just slapped it together. BIG XPMs ON THE ROOT MENU * If you set the Root Menu to 129 several things happen 1. The outlines are no longer drawn in between sections (they looked tacky anyway 2. The MTitlePixmap now spans the whole window 3. You can let MTitlePixmap have a shape (transparent XPMs) SECTION NUMBER 2:SHAPED TITLE BUTTONS First off, Shaped Title Buttons Works as Follows: in your .steprc, add TitleButton Num XPM [XPM] Num is the Icon Number you want to change- this is 0..9, and it works like this: [1][3][5][7][9] Title [0][8][6][4][2] The 2nd field is the required XPM. If you don't pass it a third parameter, it will behave exactly like plain vanilla AS pre1. The 3rd is field is optional. If you feed it a valid XPM, it does several things: 1) It doesn't use AS's built in 3d beveling. It relies on your XPM's to show depth when they get clicked. 2) Since we're not using the bevel you can use the whole 15x15 space space for you icon. 3) The first XPM is considered 'up' and the 2nd XPM is considered 'DOWN' Simple EH? SECTION NUMBER 3:COOL TITLES I added a new command to the .steprc to facilitate this one. TitleTextMode MODE Y HIRELIEF HISHADOW HINORMAL LORELIEF LOSHADOW LONORMAL MODE: Currently, 0 is the normal Afterstep. 1 is a cool 3 beveled look, and 2 is a pretty neat 3d one that has a really cool depth when clicked. Y: Sometimes you just want more control over the location of your font. Center, RightAlign and Leftalign cover the X axis, but this lets you cover the Y axis. This is nice for wierd sized fonts since you can but in numbers to get total control. You can use negative and positive integers here. The Colors: The last 6 fields are colors. I did it this way so I could have total control- and I found that by using colors from other entities, I never quiet got the effect I wanted. The actual use of these colors varies between Mode, but in general, the first 3 colors are for hilighted windows, and the last three are for unfocused windows. SUMMARY: This thing is pretty clean. The code isn't elegant in spots, but for the most part, it works cool. The bug fixes should be brought into the AS code, but the cooltitles part probably shouldn't be. QUESTIONS? COMMENTS? malda@cs.hope.edu http://www.cs.hope.edu/~malda/ <-- Got lots of cool stuff, check it out!