Skip to content

Commit

Permalink
Tweaked titlebar colors
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Aug 3, 2014
1 parent 32bbead commit 2b5b144
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion gtk-3.0/gtk-widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -4074,6 +4074,7 @@ GtkBubbleWindow .toolbar {

.titlebar .title {
font: bold;
color: mix(@titlebar_fg_color, @titlebar_bg_color, 0.3);
text-shadow: 0 1px shade(@titlebar_bg_color, 1.1);
}

Expand All @@ -4085,6 +4086,7 @@ GtkBubbleWindow .toolbar {
}

.titlebar .title:backdrop {
color: mix(@titlebar_fg_color, @titlebar_bg_color, 0.6);
text-shadow: 0 1px shade(@titlebar_bg_color, 1.05);
}

Expand Down Expand Up @@ -4129,7 +4131,7 @@ GtkBubbleWindow .toolbar {

.titlebar .titlebutton:backdrop {
background-image: none;
color: mix(@titlebar_fg_color, @titlebar_bg_color, 0.4);
color: mix(@titlebar_fg_color, @titlebar_bg_color, 0.6);
icon-shadow: 0 1px shade(@titlebar_bg_color, 1.05);
}

Expand Down
8 changes: 4 additions & 4 deletions gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
/* window manager colors */
@define-color wm_bg_a shade(@titlebar_bg_color, 1.07);
@define-color wm_bg_b @titlebar_bg_color;
@define-color wm_title_focused shade(@titlebar_fg_color, 1.2);
@define-color wm_title_focused_shadow shade(@titlebar_bg_color, 1.2);
@define-color wm_title_unfocused shade(@titlebar_fg_color, 2.0);
@define-color wm_title_unfocused_shadow shade(@titlebar_bg_color, 1.1);
@define-color wm_title_focused mix(@titlebar_fg_color, @titlebar_bg_color, 0.3);
@define-color wm_title_focused_shadow shade(@titlebar_bg_color, 1.1);
@define-color wm_title_unfocused mix(@titlebar_fg_color, @titlebar_bg_color, 0.6);
@define-color wm_title_unfocused_shadow shade(@titlebar_bg_color, 1.05);
@define-color wm_border_focused shade(@titlebar_bg_color, 0.7);
@define-color wm_border_unfocused shade(@titlebar_bg_color, 0.8);

Expand Down
6 changes: 3 additions & 3 deletions metacity-1/metacity-theme-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<constant name="C_titlebar_gradient_b" value="gtk:bg[NORMAL]" />
<constant name="C_border_focused" value="shade/gtk:bg[NORMAL]/0.7" />
<constant name="C_border_unfocused" value="shade/gtk:bg[NORMAL]/0.8" />
<constant name="C_title_focused" value="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.1" />
<constant name="C_title_focused_shadow" value="shade/gtk:bg[NORMAL]/1.2" />
<constant name="C_title_focused" value="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.3" />
<constant name="C_title_focused_shadow" value="shade/gtk:bg[NORMAL]/1.1" />
<constant name="C_title_unfocused" value="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.6" />
<constant name="C_title_unfocused_shadow" value="shade/gtk:bg[NORMAL]/1.1" />
<constant name="C_title_unfocused_shadow" value="shade/gtk:bg[NORMAL]/1.05" />

<!-- ::: GEOMETRY ::: -->
<frame_geometry name="normal" title_scale="medium" rounded_top_left="4" rounded_top_right="4">
Expand Down
6 changes: 3 additions & 3 deletions metacity-1/metacity-theme-3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<constant name="C_titlebar_gradient_b" value="gtk:custom(wm_bg_b,gtk:bg[NORMAL])" />
<constant name="C_border_focused" value="gtk:custom(wm_border_focused,shade/gtk:bg[NORMAL]/0.7)" />
<constant name="C_border_unfocused" value="gtk:custom(wm_border_unfocused,shade/gtk:bg[NORMAL]/0.8)" />
<constant name="C_title_focused" value="gtk:custom(wm_title_focused,blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.1)" />
<constant name="C_title_focused_shadow" value="gtk:custom(wm_title_focused_shadow,shade/gtk:bg[NORMAL]/1.2)" />
<constant name="C_title_focused" value="gtk:custom(wm_title_focused,blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.3)" />
<constant name="C_title_focused_shadow" value="gtk:custom(wm_title_focused_shadow,shade/gtk:bg[NORMAL]/1.1)" />
<constant name="C_title_unfocused" value="gtk:custom(wm_title_unfocused,blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.6)" />
<constant name="C_title_unfocused_shadow" value="gtk:custom(wm_title_unfocused_shadow,shade/gtk:bg[NORMAL]/1.1)" />
<constant name="C_title_unfocused_shadow" value="gtk:custom(wm_title_unfocused_shadow,shade/gtk:bg[NORMAL]/1.05)" />

<!-- ::: GEOMETRY ::: -->
<frame_geometry name="normal" title_scale="medium" rounded_top_left="4" rounded_top_right="4">
Expand Down

0 comments on commit 2b5b144

Please sign in to comment.