Skip to content

Commit 03c9929

Browse files
committed
feat: add titlebar configuration option
1 parent 72c7986 commit 03c9929

File tree

7 files changed

+30
-42
lines changed

7 files changed

+30
-42
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ If you want to enable the white panels and inputs you can install the addon pack
9090

9191
// Panels
9292
"material_theme_accent_scrollbars" : true, // Enable accent color for scrollbars
93-
"material_theme_accent_titlebar" : true, // Enable accent color for title bar
9493
"material_theme_bright_scrollbars" : true, // Bright scrollbars puck color
9594
"material_theme_compact_panel" : true, // Set minimal padding for the search panel
9695
"material_theme_contrast_mode" : true, // Enable sidebar and panels contrast mode
9796
"material_theme_panel_separator" : true, // Show bottom panel separator
9897
"material_theme_small_statusbar" : true, // Set small status bar
98+
"material_theme_titlebar" : true, // Enable title bar (OS X 10.10+)
9999

100100
// Sidebar
101101
"material_theme_arrow_folders" : true, // Replace folder icons with arrows

sources/themes/commons/options.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,30 @@
193193
"layer1.texture": "Material Theme/assets/commons/thumb_horizontal.png",
194194
"layer1.opacity": 0.2
195195
},
196+
197+
// Title bar (OS X 10.10+)
198+
199+
{
200+
"class": "title_bar",
201+
"settings": ["material_theme_titlebar"],
202+
"platforms": ["osx"],
203+
"fg": [<%= ui.foreground.primary.rgb %>],
204+
"bg": [<%= ui.background.primary.rgb %>]
205+
},
206+
207+
{
208+
"class": "title_bar",
209+
"settings": ["material_theme_titlebar", "material_theme_contrast_mode"],
210+
"platforms": ["osx"],
211+
"fg": [<%= ui.foreground.primary.rgb %>],
212+
"bg":
213+
<% if (ui.variant.id == "darker") { %>
214+
[26, 26, 26]
215+
<% } else if (ui.variant.id == "lighter") { %>
216+
[245, 245, 245]
217+
<% } else if (ui.variant.id == "palenight") { %>
218+
[33, 36, 50]
219+
<% } else { %>
220+
[30, 40, 45]
221+
<% } %>
222+
},

sources/themes/darker/app.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,3 @@
1818
"border_size": 1,
1919
"border_color": [27, 27, 27]
2020
},
21-
22-
// @TITLE BAR
23-
// App title bar
24-
// =========================================================================
25-
26-
{
27-
"class": "title_bar",
28-
"fg": [175, 189, 196],
29-
"bg": [<%= ui.background.primary.rgb %>]
30-
},

sources/themes/default/app.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,3 @@
1818
"border_size": 1,
1919
"border_color": [34, 45, 51]
2020
},
21-
22-
// @TITLE BAR
23-
// App title bar
24-
// =========================================================================
25-
26-
{
27-
"class": "title_bar",
28-
"fg": [175, 189, 196],
29-
"bg": [<%= ui.background.primary.rgb %>]
30-
},

sources/themes/lighter/app.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,3 @@
1818
"border_size": 1,
1919
"border_color": [230, 230, 230]
2020
},
21-
22-
// @TITLE BAR
23-
// App title bar
24-
// =========================================================================
25-
26-
{
27-
"class": "title_bar",
28-
"fg": [144, 164, 174],
29-
"bg": [<%= ui.background.primary.rgb %>]
30-
},

sources/themes/palenight/app.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,3 @@
1818
"border_size": 1,
1919
"border_color": [32, 34, 48]
2020
},
21-
22-
// @TITLE BAR
23-
// App title bar
24-
// =========================================================================
25-
26-
{
27-
"class": "title_bar",
28-
"fg": [166, 172, 205],
29-
"bg": [<%= ui.background.primary.rgb %>]
30-
},

utils/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
'material_theme_contrast_mode',
6363
'material_theme_bright_scrollbars',
6464
'material_theme_accent_scrollbars',
65-
'material_theme_accent_titlebar'
65+
'material_theme_titlebar'
66+
# 'material_theme_accent_titlebar'
6667
],
6768
)
6869
)

0 commit comments

Comments
 (0)