Skip to content

Commit

Permalink
Mint-border,metacity-1: rename gtk -> ctk
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Jan 3, 2024
1 parent 49d64a5 commit 5bd4564
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
42 changes: 21 additions & 21 deletions desktop-themes/Mint-border/metacity-1/metacity-theme-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

<!-- meaningfull constants -->

<constant name="C_border_focused" value="blend/#000000/gtk:bg[NORMAL]/0.5" />
<constant name="C_border_unfocused" value="blend/#000000/gtk:bg[NORMAL]/0.6" />
<constant name="C_titlebar_focused_hilight" value="gtk:base[NORMAL]" />
<constant name="C_titlebar_unfocused" value="blend/gtk:base[NORMAL]/gtk:bg[NORMAL]/0.4" />
<constant name="C_title_focused" value="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.1" />
<constant name="C_title_focused_hilight" value="gtk:base[NORMAL]" />
<constant name="C_title_unfocused" value="blend/gtk:text[NORMAL]/gtk:bg[NORMAL]/0.5" />
<constant name="C_border_focused" value="blend/#000000/ctk:bg[NORMAL]/0.5" />
<constant name="C_border_unfocused" value="blend/#000000/ctk:bg[NORMAL]/0.6" />
<constant name="C_titlebar_focused_hilight" value="ctk:base[NORMAL]" />
<constant name="C_titlebar_unfocused" value="blend/ctk:base[NORMAL]/ctk:bg[NORMAL]/0.4" />
<constant name="C_title_focused" value="blend/ctk:fg[NORMAL]/ctk:bg[NORMAL]/0.1" />
<constant name="C_title_focused_hilight" value="ctk:base[NORMAL]" />
<constant name="C_title_unfocused" value="blend/ctk:text[NORMAL]/ctk:bg[NORMAL]/0.5" />
<!-- color of the button icons -->
<constant name="D_icons_unfocused_offset" value="0" /> <!-- offset of the unfocused icons -->
<!-- geometries -->
Expand Down Expand Up @@ -113,7 +113,7 @@
<!-- window decorations -->

<draw_ops name="entire_background_focused">
<rectangle color="gtk:bg[NORMAL]" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="ctk:bg[NORMAL]" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>

<draw_ops name="entire_background_unfocused">
Expand All @@ -122,28 +122,28 @@

<draw_ops name="titlebar_fill_focused">
<gradient type="vertical" x="0" y="0" width="width" height="height">
<color value="blend/gtk:bg[NORMAL]/gtk:base[NORMAL]/0.4" />
<color value="gtk:bg[NORMAL]"/>
<color value="blend/gtk:bg[NORMAL]/#000000/0.03" />
<color value="blend/gtk:bg[NORMAL]/#000000/0.06" />
<color value="blend/ctk:bg[NORMAL]/ctk:base[NORMAL]/0.4" />
<color value="ctk:bg[NORMAL]"/>
<color value="blend/ctk:bg[NORMAL]/#000000/0.03" />
<color value="blend/ctk:bg[NORMAL]/#000000/0.06" />
</gradient>
</draw_ops>

<draw_ops name="titlebar_fill_focused_alt">
<gradient type="vertical" x="0" y="0" width="width" height="height">
<color value="blend/gtk:bg[NORMAL]/gtk:base[NORMAL]/0.6" />
<!-- <color value="gtk:bg[NORMAL]"/> -->
<!-- <color value="blend/gtk:bg[NORMAL]/#000000/0.03" /> -->
<color value="gtk:bg[NORMAL]"/>
<color value="blend/ctk:bg[NORMAL]/ctk:base[NORMAL]/0.6" />
<!-- <color value="ctk:bg[NORMAL]"/> -->
<!-- <color value="blend/ctk:bg[NORMAL]/#000000/0.03" /> -->
<color value="ctk:bg[NORMAL]"/>
</gradient>
</draw_ops>

<draw_ops name="titlebar_fill_unfocused">
<gradient type="vertical" x="0" y="0" width="width" height="height">
<color value="blend/gtk:bg[NORMAL]/gtk:base[NORMAL]/0.4" />
<color value="gtk:bg[NORMAL]"/>
<color value="blend/gtk:bg[NORMAL]/#000000/0.03" />
<color value="blend/gtk:bg[NORMAL]/#000000/0.06" />
<color value="blend/ctk:bg[NORMAL]/ctk:base[NORMAL]/0.4" />
<color value="ctk:bg[NORMAL]"/>
<color value="blend/ctk:bg[NORMAL]/#000000/0.03" />
<color value="blend/ctk:bg[NORMAL]/#000000/0.06" />
</gradient>
</draw_ops>

Expand All @@ -156,7 +156,7 @@
<line x1="0" y1="1" x2="width-1" y2="1" color="C_titlebar_focused_hilight" />
<gradient type="vertical" x="1" y="1" width="1" height="height-4">
<color value="C_titlebar_focused_hilight" />
<color value="blend/gtk:bg[NORMAL]/#000000/0.03" />
<color value="blend/ctk:bg[NORMAL]/#000000/0.03" />
</gradient>
</draw_ops>

Expand Down
28 changes: 14 additions & 14 deletions desktop-themes/Mint-border/metacity-1/metacity-theme-3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

<!-- meaningfull constants -->

<constant name="C_border_focused" value="blend/#000000/gtk:bg[NORMAL]/0.5" />
<constant name="C_border_unfocused" value="blend/#000000/gtk:bg[NORMAL]/0.6" />
<constant name="C_titlebar_focused_hilight" value="gtk:custom(wm_highlight,gtk:base[NORMAL])" />
<constant name="C_titlebar_unfocused" value="blend/gtk:base[NORMAL]/gtk:bg[NORMAL]/0.4" />
<constant name="C_title_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
<constant name="C_title_focused_hilight" value="gtk:custom(wm_title_highlight,gtk:base[NORMAL])" />
<constant name="C_title_focused_hilight_dark" value="gtk:custom(wm_title_highlight_dark,gtk:bg[NORMAL])" />
<constant name="C_title_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[INSENSITIVE])" />
<constant name="C_border_focused" value="blend/#000000/ctk:bg[NORMAL]/0.5" />
<constant name="C_border_unfocused" value="blend/#000000/ctk:bg[NORMAL]/0.6" />
<constant name="C_titlebar_focused_hilight" value="ctk:custom(wm_highlight,ctk:base[NORMAL])" />
<constant name="C_titlebar_unfocused" value="blend/ctk:base[NORMAL]/ctk:bg[NORMAL]/0.4" />
<constant name="C_title_focused" value="ctk:custom(wm_title,ctk:fg[NORMAL])" />
<constant name="C_title_focused_hilight" value="ctk:custom(wm_title_highlight,ctk:base[NORMAL])" />
<constant name="C_title_focused_hilight_dark" value="ctk:custom(wm_title_highlight_dark,ctk:bg[NORMAL])" />
<constant name="C_title_unfocused" value="ctk:custom(wm_unfocused_title,ctk:fg[INSENSITIVE])" />
<!-- color of the button icons -->
<constant name="D_icons_unfocused_offset" value="0" /> <!-- offset of the unfocused icons -->
<!-- geometries -->
Expand Down Expand Up @@ -142,7 +142,7 @@
<!-- window decorations -->

<draw_ops name="entire_background_focused">
<rectangle color="gtk:bg[NORMAL]" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="ctk:bg[NORMAL]" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>

<draw_ops name="entire_background_unfocused">
Expand All @@ -151,24 +151,24 @@

<draw_ops name="titlebar_fill_focused">
<gradient type="vertical" x="0" y="0" width="width" height="height">
<color value="gtk:custom(wm_bg_a,blend/gtk:bg[NORMAL]/gtk:base[NORMAL]/0.4)" />
<color value="gtk:custom(wm_bg_b,gtk:bg[NORMAL])" />
<color value="ctk:custom(wm_bg_a,blend/ctk:bg[NORMAL]/ctk:base[NORMAL]/0.4)" />
<color value="ctk:custom(wm_bg_b,ctk:bg[NORMAL])" />
</gradient>
</draw_ops>


<draw_ops name="titlebar_fill_unfocused">
<gradient type="vertical" x="0" y="0" width="width" height="height">
<color value="gtk:custom(wm_bg_a,blend/gtk:bg[NORMAL]/gtk:base[NORMAL]/0.4)" />
<color value="gtk:custom(wm_bg_b,gtk:bg[NORMAL])" />
<color value="ctk:custom(wm_bg_a,blend/ctk:bg[NORMAL]/ctk:base[NORMAL]/0.4)" />
<color value="ctk:custom(wm_bg_b,ctk:bg[NORMAL])" />
</gradient>
</draw_ops>

<draw_ops name="hilight">
<line x1="0" y1="1" x2="width-1" y2="1" color="C_titlebar_focused_hilight" />
<gradient type="vertical" x="1" y="1" width="1" height="height-4">
<color value="C_titlebar_focused_hilight" />
<color value="blend/gtk:bg[NORMAL]/#000000/0.03" />
<color value="blend/ctk:bg[NORMAL]/#000000/0.03" />
</gradient>
</draw_ops>

Expand Down

0 comments on commit 5bd4564

Please sign in to comment.