-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/ghi-#43-theme-setting-to-darken-focused-form-co…
…lors' into develop
- Loading branch information
Showing
5 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe "Nord Atom UI theme", -> | ||
beforeEach -> | ||
waitsForPromise -> | ||
atom.packages.activatePackage('nord-atom-ui') | ||
|
||
it "allows to use darker colors for focused forms to be set via theme settings", -> | ||
expect(document.documentElement.getAttribute('theme-nord-atom-ui-form-focus-effect')).toBe null | ||
|
||
atom.config.set('nord-atom-ui.darkerFormFocusEffect', true) | ||
expect(document.documentElement.getAttribute('theme-nord-atom-ui-form-focus-effect')).toBe 'nosnowlight' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,20 +7,51 @@ author Arctic Ice Studio + | |
email [email protected] + | ||
copyright Copyright (C) 2016 + | ||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
[Index] | ||
> Variables | ||
> User Interface | ||
Full-Width Tab Sizing | ||
*/ | ||
/*+-----------+ | ||
+ Variables + | ||
+-----------+*/ | ||
+ Variables + | ||
+-----------+*/ | ||
@theme-setting-formfocuseffect: ~'theme-@{ui-theme-name}-form-focus-effect'; | ||
@theme-setting-tabsizing: ~'theme-@{ui-theme-name}-tabsizing'; | ||
|
||
@theme-setting-formfocuseffect-background-color: @nord3; | ||
@theme-setting-formfocuseffect-border-color: @nord3; | ||
@theme-setting-formfocuseffect-text-selection-color: @nord1; | ||
|
||
|
||
|
||
/*+----------------+ | ||
+ User Interface + | ||
+----------------+*/ | ||
+ User Interface + | ||
+----------------+*/ | ||
/*+--- Darker Form-Focusing Effect ---+*/ | ||
[@{theme-setting-formfocuseffect}="nosnowlight"] { | ||
.theme-setting-formfocuseffect-nosnowlight(); | ||
} | ||
|
||
.theme-setting-formfocuseffect-nosnowlight() { | ||
.find-and-replace, | ||
.settings-view { | ||
atom-text-editor[mini].is-focused, | ||
atom-text-editor[mini].is-focused::shadow { | ||
border: 1px solid @theme-setting-formfocuseffect-border-color; | ||
background-color: @theme-setting-formfocuseffect-background-color; | ||
|
||
.text, | ||
.source { | ||
color: @text-color; | ||
|
||
.regexp { | ||
color: @text-color; | ||
} | ||
} | ||
|
||
.highlights .region { | ||
background-color: @theme-setting-formfocuseffect-text-selection-color; | ||
} | ||
} | ||
} | ||
} | ||
|
||
/*+--- Full Width Tab Sizing ---+*/ | ||
[@{theme-setting-tabsizing}="nofullwidth"] { | ||
.theme-setting-tabsizing-nofullwidth(); | ||
|
@@ -29,11 +60,11 @@ copyright Copyright (C) 2016 + | |
.theme-setting-tabsizing-nofullwidth() { | ||
.tab-bar { | ||
width: auto; | ||
|
||
.tab { | ||
width: inherit; | ||
} | ||
|
||
.tab.active, | ||
.tab:hover.active { | ||
width: inherit; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters