-
-
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-#36-theme-settings' into develop
- Loading branch information
Showing
8 changed files
with
114 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
# title Circle CI Build Configuration + | ||
# project nord-atom-ui + | ||
# version + | ||
# repository https://github.com/arcticicestudio/nord-atom-ui + | ||
# author Arctic Ice Studio + | ||
# email development@arcticicestudio.com + | ||
# copyright Copyright (C) 2016 + | ||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
# | ||
# [References] | ||
# Circle CI | ||
# (https://circleci.com/docs) | ||
machine: | ||
environment: | ||
ATOM_LINT_WITH_BUNDLED_NODE: "true" | ||
APM_TEST_PACKAGES: "" | ||
|
||
dependencies: | ||
override: | ||
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh | ||
- chmod u+x build-package.sh | ||
|
||
test: | ||
override: | ||
- ./build-package.sh |
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,18 @@ | ||
root = document.documentElement; | ||
|
||
module.exports = | ||
activate: (state) -> | ||
atom.config.observe 'nord-atom-ui.tabSizing', (noFullWidth) -> | ||
setTabSizing(noFullWidth) | ||
|
||
deactivate: -> | ||
unsetTabSizing() | ||
|
||
setTabSizing = (noFullWidth) -> | ||
if (noFullWidth) | ||
unsetTabSizing() | ||
else | ||
root.setAttribute('theme-nord-atom-ui-tabsizing', "nofullwidth") | ||
|
||
unsetTabSizing = -> | ||
root.removeAttribute('theme-nord-atom-ui-tabsizing') |
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 disable full-width tab sizing to be set via theme settings", -> | ||
expect(document.documentElement.getAttribute('theme-nord-atom-ui-tabsizing')).toBe null | ||
|
||
atom.config.set('nord-atom-ui.tabSizing', false) | ||
expect(document.documentElement.getAttribute('theme-nord-atom-ui-tabsizing')).toBe 'nofullwidth' |
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,43 @@ | ||
/* | ||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
title UI Theme Settings + | ||
project nord-atom-ui + | ||
version + | ||
repository https://github.com/arcticicestudio/nord-atom-ui + | ||
author Arctic Ice Studio + | ||
email development@arcticicestudio.com + | ||
copyright Copyright (C) 2016 + | ||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
[Index] | ||
> Variables | ||
> User Interface | ||
Full-Width Tab Sizing | ||
*/ | ||
/*+-----------+ | ||
+ Variables + | ||
+-----------+*/ | ||
@theme-setting-tabsizing: ~'theme-@{ui-theme-name}-tabsizing'; | ||
|
||
/*+----------------+ | ||
+ User Interface + | ||
+----------------+*/ | ||
/*+--- Full Width Tab Sizing ---+*/ | ||
[@{theme-setting-tabsizing}="nofullwidth"] { | ||
.theme-setting-tabsizing-nofullwidth(); | ||
} | ||
|
||
.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