Skip to content

Commit

Permalink
chore: enable accent_titlebar option
Browse files Browse the repository at this point in the history
  • Loading branch information
zpreston123 committed Nov 21, 2017
1 parent 5f56fac commit 479bf1b
Show file tree
Hide file tree
Showing 8 changed files with 808 additions and 551 deletions.
332 changes: 197 additions & 135 deletions Material-Theme-Darker.sublime-theme

Large diffs are not rendered by default.

332 changes: 197 additions & 135 deletions Material-Theme-Lighter.sublime-theme

Large diffs are not rendered by default.

332 changes: 197 additions & 135 deletions Material-Theme-Palenight.sublime-theme

Large diffs are not rendered by default.

332 changes: 197 additions & 135 deletions Material-Theme.sublime-theme

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ 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 titlebar
"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
Expand Down
9 changes: 0 additions & 9 deletions sources/themes/commons/accent.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,6 @@
"layer1.opacity": 0.8
},

// Title Bar

// {
// "class": "title_bar",
// "settings": ["material_theme_accent_titlebar", "material_theme_accent_<%= ui.accents[i].id %>"],
// "bg": [<%= ui.accents[i].rgb %>],
// "fg": [<%= ui.accents[i].foreground.rgb %>]
// },

// Symlink folder icon

{
Expand Down
17 changes: 17 additions & 0 deletions sources/themes/commons/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,20 @@
[30, 40, 45]
<% } %>
},

<% for (var i = 0; i < ui.accents.length; i++) { %>

{
"class": "title_bar",
"settings": ["material_theme_accent_titlebar", "material_theme_accent_<%= ui.accents[i].id %>", "material_theme_titlebar"],
"platforms": ["osx"],
"bg": [<%= ui.accents[i].rgb %>],
"fg":
<% if (ui.accents[i].id == "acid-lime" || ui.accents[i].id == "bright-teal" || ui.accents[i].id == "sky") { %>
[0, 0, 0]
<% } else { %>
[255, 255, 255]
<% } %>
},

<% } %>
4 changes: 2 additions & 2 deletions utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
'material_theme_contrast_mode',
'material_theme_bright_scrollbars',
'material_theme_accent_scrollbars',
'material_theme_titlebar'
# 'material_theme_accent_titlebar'
'material_theme_titlebar',
'material_theme_accent_titlebar'
],
)
)
Expand Down

0 comments on commit 479bf1b

Please sign in to comment.