Skip to content

Commit

Permalink
feat: add titlebar configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
zpreston123 committed Oct 22, 2017
1 parent 72c7986 commit 03c9929
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ If you want to enable the white panels and inputs you can install the addon pack

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

// Sidebar
"material_theme_arrow_folders" : true, // Replace folder icons with arrows
Expand Down
27 changes: 27 additions & 0 deletions sources/themes/commons/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,30 @@
"layer1.texture": "Material Theme/assets/commons/thumb_horizontal.png",
"layer1.opacity": 0.2
},

// Title bar (OS X 10.10+)

{
"class": "title_bar",
"settings": ["material_theme_titlebar"],
"platforms": ["osx"],
"fg": [<%= ui.foreground.primary.rgb %>],
"bg": [<%= ui.background.primary.rgb %>]
},

{
"class": "title_bar",
"settings": ["material_theme_titlebar", "material_theme_contrast_mode"],
"platforms": ["osx"],
"fg": [<%= ui.foreground.primary.rgb %>],
"bg":
<% if (ui.variant.id == "darker") { %>
[26, 26, 26]
<% } else if (ui.variant.id == "lighter") { %>
[245, 245, 245]
<% } else if (ui.variant.id == "palenight") { %>
[33, 36, 50]
<% } else { %>
[30, 40, 45]
<% } %>
},
10 changes: 0 additions & 10 deletions sources/themes/darker/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,3 @@
"border_size": 1,
"border_color": [27, 27, 27]
},

// @TITLE BAR
// App title bar
// =========================================================================

{
"class": "title_bar",
"fg": [175, 189, 196],
"bg": [<%= ui.background.primary.rgb %>]
},
10 changes: 0 additions & 10 deletions sources/themes/default/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,3 @@
"border_size": 1,
"border_color": [34, 45, 51]
},

// @TITLE BAR
// App title bar
// =========================================================================

{
"class": "title_bar",
"fg": [175, 189, 196],
"bg": [<%= ui.background.primary.rgb %>]
},
10 changes: 0 additions & 10 deletions sources/themes/lighter/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,3 @@
"border_size": 1,
"border_color": [230, 230, 230]
},

// @TITLE BAR
// App title bar
// =========================================================================

{
"class": "title_bar",
"fg": [144, 164, 174],
"bg": [<%= ui.background.primary.rgb %>]
},
10 changes: 0 additions & 10 deletions sources/themes/palenight/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,3 @@
"border_size": 1,
"border_color": [32, 34, 48]
},

// @TITLE BAR
// App title bar
// =========================================================================

{
"class": "title_bar",
"fg": [166, 172, 205],
"bg": [<%= ui.background.primary.rgb %>]
},
3 changes: 2 additions & 1 deletion utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
'material_theme_contrast_mode',
'material_theme_bright_scrollbars',
'material_theme_accent_scrollbars',
'material_theme_accent_titlebar'
'material_theme_titlebar'
# 'material_theme_accent_titlebar'
],
)
)
Expand Down

0 comments on commit 03c9929

Please sign in to comment.