Use titlebar bg as a constant

gtk-3.4
Satyajit Sahoo 2013-08-04 05:32:40 +05:30
parent af5e145c7b
commit ed3dfcde67
2 changed files with 9 additions and 7 deletions

View File

@ -9,6 +9,7 @@
</info>
<!-- ::: CONSTANTS ::: -->
<constant name="C_titlebar" value="#2d2d2d" />
<constant name="C_border_focused" value="#484848" />
<constant name="C_border_unfocused" value="#393939" />
<constant name="C_title_focused" value="#dcdcdc" />
@ -95,7 +96,7 @@
<!-- ::: WINDOW DECORATIONS ::: -->
<draw_ops name="entire_background_focused">
<rectangle color="#2d2d2d" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="C_titlebar" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>
<draw_ops name="entire_background_unfocused">
@ -103,7 +104,7 @@
</draw_ops>
<draw_ops name="titlebar_fill_focused">
<rectangle color="#2d2d2d" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="C_titlebar" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>
<draw_ops name="titlebar_fill_attached_focused">
@ -111,7 +112,7 @@
</draw_ops>
<draw_ops name="titlebar_fill_unfocused">
<rectangle color="#2d2d2d" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="C_titlebar" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>
<draw_ops name="titlebar_focused">

View File

@ -9,10 +9,11 @@
</info>
<!-- ::: CONSTANTS ::: -->
<constant name="C_titlebar" value="gtk:custom(wm_bg,#2d2d2d)" />
<constant name="C_border_focused" value="gtk:custom(wm_border_focused,#484848)" />
<constant name="C_border_unfocused" value="gtk:custom(wm_border_unfocused,#393939)" />
<constant name="C_title_focused" value="gtk:custom(wm_title_focused,#dcdcdc)" />
<constant name="C_title_unfocused" value="gtk:custom(wm_title_unfocused,#393939)" />
<constant name="C_title_unfocused" value="gtk:custom(wm_title_unfocused,#888888)" />
<!-- ::: GEOMETRY ::: -->
<frame_geometry name="normal" title_scale="medium" rounded_top_left="1" rounded_top_right="1">
@ -107,7 +108,7 @@
<!-- ::: WINDOW DECORATIONS ::: -->
<draw_ops name="entire_background_focused">
<rectangle color="gtk:custom(wm_bg,#2d2d2d)" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="C_titlebar" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>
<draw_ops name="entire_background_unfocused">
@ -115,7 +116,7 @@
</draw_ops>
<draw_ops name="titlebar_fill_focused">
<rectangle color="gtk:custom(wm_bg,#2d2d2d)" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="C_titlebar" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>
<draw_ops name="titlebar_fill_attached_focused">
@ -123,7 +124,7 @@
</draw_ops>
<draw_ops name="titlebar_fill_unfocused">
<rectangle color="gtk:custom(wm_bg,#2d2d2d)" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="C_titlebar" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>
<draw_ops name="titlebar_focused">