[waimea] Re: Maximize Button
Carl Lucas
vokyvsd at gmail.com
Fri Jun 18 17:48:49 EEST 2004
Here's my quick and dirty maximize button:
I edited styles/freedesktop/window.conf and insert
<window>maximize</window> in a new line above every occurence of
<window>close</window>. Then, just above the line beginning with
<style name="window-close-passive" I inserted the following:
<style name="window-maximize-passive" translucent="true"
x="36px" y="3px" gravity="northeast"
x2="18px" y2="2px" gravity2="southeast">
<path name="box" fill_color="fg-color-passive">
<moveto x="3px" y="3px" gravity="northwest"/>
<lineto x="3px" y="3px" gravity="northeast"/>
<lineto x="3px" y="3px" gravity="southeast"/>
<lineto x="3px" y="3px" gravity="southwest"/>
<lineto x="3px" y="6px" gravity="northwest"/>
<lineto x="6px" y="6px" gravity="northwest"/>
<lineto x="6px" y="6px" gravity="southwest"/>
<lineto x="6px" y="6px" gravity="southeast"/>
<lineto x="6px" y="6px" gravity="northeast"/>
<lineto x="3px" y="6px" gravity="northwest"/>
<lineto x="3px" y="3px" gravity="northwest"/>
<close/>
</path>
</style>
<style name="window-maximize-active" translucent="true"
x="36px" y="3px" gravity="northeast"
x2="18px" y2="2px" gravity2="southeast">
<path fill_color="font-color-active" stroke_color="window-color1"
drawing_order="strokefill">
<inherit>box</inherit>
</path>
</style>
<style name="window-maximize-hover" translucent="true"
x="36px" y="3px" gravity="northeast"
x2="18px" y2="2px" gravity2="southeast">
<path fill_color="font-color-active" stroke_color="#59a2ee"
drawing_order="strokefill">
<inherit>box</inherit>
</path>
</style>
<style name="window-maximize-pressed" translucent="true"
x="36px" y="3px" gravity="northeast"
x2="18px" y2="2px" gravity2="southeast">
<path fill_color="font-color-active" stroke_color="#59a2ee"
drawing_order="fillstroke">
<inherit>box</inherit>
</path>
</style>
<actionlist name="window-maximize">
<action function="windowmaximize"
event="buttonrelease"
button="button1"/>
</actionlist>
<match target="window" window="^frame.title.maximize$"
style="window-maximize-passive"/>
<match target="window" window="^frame.title.maximize$" state="active"
style="window-maximize-active"/>
<match target="window" window="^frame.title.maximize$" state="hover"
style="window-maximize-hover"
actionlist="window-maximize"/>
<match target="window" window="^frame.title.maximize$" state="pressed"
style="window-maximize-pressed"
actionlist="window-maximize"/>
This gives you a maximize button to the left of the close button. The
problem is that you can't unmaximize. I hope this helps.
On Wed, 16 Jun 2004 13:49:57 -0400, Chris Ovsenik
<ceovsenik at chartermi.net> wrote:
>
> I have been using waimea .4.0 for a long time now, and had lots of customizations. I am trying .5.0, and I was wondering if you could solve a few problems for me.
> 1. I need to remove the border from dockapps. I am not sure how to do this, I tried changing values in styles/freedesktop/dockapps.conf.
> 2. I want to have a decorless aterm, I had it in .4.0
> 3. I would like a maximize button on the title bar for windows.
> Thanks for any help you can provide. I am not subscribed so please reply to this msg.
> -christian
>
> _______________________________________________
> waimea mailing list
> waimea at waimea.org
> http://freedesktop.org/mailman/listinfo/waimea
>
More information about the waimea
mailing list