Skip to content

Commit

Permalink
Automatically switch color of window header title and shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Apr 23, 2018
1 parent 544ad94 commit b25ac59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ exports.decorateConfig = config => {
const background = options.unibody ? unibody : primary;
const selection = color(primary).alpha(0.3).string();
const transparent = color(secondary).alpha(0).string();
const header = color(background).isDark() ? '#FAFAFA' : '#010101';
const activeTab = color(secondary).isDark() ? '#FAFAFA' : '#383A42';
const tab = color(activeTab).darken(0.1);

Expand Down Expand Up @@ -126,7 +127,7 @@ exports.decorateConfig = config => {
background-size: cover;
}
.header_shape, .header_appTitle {
color: ${secondary};
color: ${header};
}
.header_header, .header_windowHeader {
background-color: ${background} !important;
Expand Down

0 comments on commit b25ac59

Please sign in to comment.