-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LT 281: Users shall be able to switch between themes (#45)
* LT-281: Users shall be able to switch between themes * Avoiding compatibility issues * Typo fixing
- Loading branch information
1 parent
1dbcbae
commit 0417bf6
Showing
21 changed files
with
402 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,5 @@ | |
{{ >lastLoginModal }} | ||
{{ >progressDialog }} | ||
{{ >viewSeriesDetailsModal }} | ||
{{ >themeSelectorModal }} | ||
</template> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,47 @@ | ||
.theme-icon-crickets | ||
.theme-icon-tide | ||
.theme-icon-tigerlily | ||
.theme-icon-quartz | ||
.theme-icon-overcast | ||
.theme-icon-mint | ||
.theme-icon-honeycomb | ||
display: inline-block | ||
background: url('/packages/design/assets/theme-icons.png') no-repeat | ||
overflow: hidden | ||
text-indent: -9999px | ||
text-align: left | ||
|
||
.theme-icon-crickets | ||
background-position: -0px -0px | ||
width: 64px | ||
height: 56px | ||
|
||
.theme-icon-tide | ||
background-position: -0px -56px | ||
width: 64px | ||
height: 54px | ||
|
||
.theme-icon-tigerlily | ||
background-position: -0px -110px | ||
width: 62px | ||
height: 61px | ||
|
||
.theme-icon-quartz | ||
background-position: -0px -171px | ||
width: 59px | ||
height: 64px | ||
|
||
.theme-icon-overcast | ||
background-position: -0px -235px | ||
width: 58px | ||
height: 37px | ||
|
||
.theme-icon-mint | ||
background-position: -0px -272px | ||
width: 57px | ||
height: 61px | ||
|
||
.theme-icon-honeycomb | ||
background-position: -0px -333px | ||
width: 50px | ||
height: 58px |
35 changes: 35 additions & 0 deletions
35
Packages/ohif-design/styles/imports/themes/theme-crickets.styl
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,35 @@ | ||
$themes['crickets'] = { | ||
// Common pallete | ||
$uiYellow: #E29E4A | ||
$uiSkyBlue: #6FBDE2 | ||
|
||
// State pallete | ||
$uiStateError: #FFCCCC | ||
$uiStateErrorBorder: #993333 | ||
$uiStateErrorText: #661111 | ||
|
||
$uiGrayLight: #516873 | ||
$uiGray: #263340 | ||
$uiGrayDark: #2B141B | ||
$uiGrayDarker: #231C1E | ||
$uiGrayDarkest: #14191E | ||
|
||
// Interface UI Colors | ||
$defaultColor: #92C2DA | ||
$hoverColor: #ffffff | ||
$activeColor: #D4C3C1 | ||
$uiBorderColor: #537B76 | ||
$uiBorderColorDark: #3C5D80 | ||
$uiBorderColorActive: #d4aaa5 | ||
$primaryBackgroundColor: #000000 | ||
$boxBackgroundColor: #344a61 | ||
|
||
// Text Colors | ||
$textColorActive: black | ||
$textPrimaryColor: #ffffff | ||
$textSecondaryColor: #8BE7B5 | ||
$largeNumbersColor: #D47C66 | ||
|
||
// Other Colors | ||
$imageSliderColor: #163239 | ||
} |
35 changes: 35 additions & 0 deletions
35
Packages/ohif-design/styles/imports/themes/theme-honeycomb.styl
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,35 @@ | ||
$themes['honeycomb'] = { | ||
// Common pallete | ||
$uiYellow: #E29E4A | ||
$uiSkyBlue: #6FBDE2 | ||
|
||
// State pallete | ||
$uiStateError: #FFCCCC | ||
$uiStateErrorBorder: #993333 | ||
$uiStateErrorText: #661111 | ||
|
||
$uiGrayLight: #516873 | ||
$uiGray: #263340 | ||
$uiGrayDark: #252228 | ||
$uiGrayDarker: #18161A | ||
$uiGrayDarkest: #14191E | ||
|
||
// Interface UI Colors | ||
$defaultColor: #B5B5B5 | ||
$hoverColor: #ffffff | ||
$activeColor: #CDA56B | ||
$uiBorderColor: #623337 | ||
$uiBorderColorDark: #3C5D80 | ||
$uiBorderColorActive: #ce9e59 | ||
$primaryBackgroundColor: #000000 | ||
$boxBackgroundColor: #344a61 | ||
|
||
// Text Colors | ||
$textColorActive: black | ||
$textPrimaryColor: #ffffff | ||
$textSecondaryColor: #FAB797 | ||
$largeNumbersColor: #D47C66 | ||
|
||
// Other Colors | ||
$imageSliderColor: #163239 | ||
} |
35 changes: 35 additions & 0 deletions
35
Packages/ohif-design/styles/imports/themes/theme-mint.styl
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,35 @@ | ||
$themes['mint'] = { | ||
// Common pallete | ||
$uiYellow: #E29E4A | ||
$uiSkyBlue: #6FBDE2 | ||
|
||
// State pallete | ||
$uiStateError: #FFCCCC | ||
$uiStateErrorBorder: #993333 | ||
$uiStateErrorText: #661111 | ||
|
||
$uiGrayLight: #516873 | ||
$uiGray: #263340 | ||
$uiGrayDark: #1D232A | ||
$uiGrayDarker: #15191E | ||
$uiGrayDarkest: #14191E | ||
|
||
// Interface UI Colors | ||
$defaultColor: #A7E9B3 | ||
$hoverColor: #ffffff | ||
$activeColor: #31B166 | ||
$uiBorderColor: #214529 | ||
$uiBorderColorDark: #3C5D80 | ||
$uiBorderColorActive: #23b15d | ||
$primaryBackgroundColor: #000000 | ||
$boxBackgroundColor: #344a61 | ||
|
||
// Text Colors | ||
$textColorActive: black | ||
$textPrimaryColor: #ffffff | ||
$textSecondaryColor: #A7E9B3 | ||
$largeNumbersColor: #76D27D | ||
|
||
// Other Colors | ||
$imageSliderColor: #163239 | ||
} |
35 changes: 35 additions & 0 deletions
35
Packages/ohif-design/styles/imports/themes/theme-overcast.styl
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,35 @@ | ||
$themes['overcast'] = { | ||
// Common pallete | ||
$uiYellow: #E29E4A | ||
$uiSkyBlue: #6FBDE2 | ||
|
||
// State pallete | ||
$uiStateError: #FFCCCC | ||
$uiStateErrorBorder: #993333 | ||
$uiStateErrorText: #661111 | ||
|
||
$uiGrayLight: #516873 | ||
$uiGray: #263340 | ||
$uiGrayDark: #252228 | ||
$uiGrayDarker: #15191E | ||
$uiGrayDarkest: #14191E | ||
|
||
// Interface UI Colors | ||
$defaultColor: #9CBECF | ||
$hoverColor: #ffffff | ||
$activeColor: #507D80 | ||
$uiBorderColor: #404040 | ||
$uiBorderColorDark: #3C5D80 | ||
$uiBorderColorActive: #467c80 | ||
$primaryBackgroundColor: #000000 | ||
$boxBackgroundColor: #344a61 | ||
|
||
// Text Colors | ||
$textColorActive: black | ||
$textPrimaryColor: #ffffff | ||
$textSecondaryColor: #73F2FC | ||
$largeNumbersColor: #74F1FA | ||
|
||
// Other Colors | ||
$imageSliderColor: #163239 | ||
} |
35 changes: 35 additions & 0 deletions
35
Packages/ohif-design/styles/imports/themes/theme-quartz.styl
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,35 @@ | ||
$themes['quartz'] = { | ||
// Common pallete | ||
$uiYellow: #E29E4A | ||
$uiSkyBlue: #6FBDE2 | ||
|
||
// State pallete | ||
$uiStateError: #FFCCCC | ||
$uiStateErrorBorder: #993333 | ||
$uiStateErrorText: #661111 | ||
|
||
$uiGrayLight: #516873 | ||
$uiGray: #263340 | ||
$uiGrayDark: #2B2E3F | ||
$uiGrayDarker: #151A1F | ||
$uiGrayDarkest: #14191E | ||
|
||
// Interface UI Colors | ||
$defaultColor: #8EA2A4 | ||
$hoverColor: #ffffff | ||
$activeColor: #7858CE | ||
$uiBorderColor: #885B86 | ||
$uiBorderColorDark: #3C5D80 | ||
$uiBorderColorActive: #6843cc | ||
$primaryBackgroundColor: #000000 | ||
$boxBackgroundColor: #344a61 | ||
|
||
// Text Colors | ||
$textColorActive: black | ||
$textPrimaryColor: #ffffff | ||
$textSecondaryColor: #D7E8FE | ||
$largeNumbersColor: #ABCDF6 | ||
|
||
// Other Colors | ||
$imageSliderColor: #163239 | ||
} |
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
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
3 changes: 3 additions & 0 deletions
3
Packages/ohif-study-list/client/components/themeSelector/index.js
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,3 @@ | ||
import './themeSelectorModal/themeSelectorModal.html'; | ||
import './themeSelectorModal/themeSelectorModal.styl'; | ||
import './themeSelectorModal/themeSelectorModal.js'; |
28 changes: 28 additions & 0 deletions
28
...hif-study-list/client/components/themeSelector/themeSelectorModal/themeSelectorModal.html
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,28 @@ | ||
<template name="themeSelectorModal"> | ||
<div class="modal" id="themeSelectorModal" tabindex="-1" role="dialog" aria-labelledby="themeSelectorModalLabel"> | ||
<div class="modal-dialog modal-lg" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h4 class="modal-title" id="themeSelectorModalLabel"><i class="fa fa-sliders"></i> Themes</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<ul class="theme-list text-center"> | ||
{{#each theme in themes}} | ||
<li class="text-center preview-theme {{addClassIfSelected theme}}" data-theme="{{theme}}"> | ||
<div class="icon-wrapper"> | ||
<span class="theme-icon-{{theme}}"></span> | ||
</div> | ||
<h4 class="theme-title">{{ucFirst theme}}</h4> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default js-cancel" data-dismiss="modal">Cancel</button> | ||
<button type="button" class="btn btn-primary js-apply" data-dismiss="modal">Apply theme</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
Oops, something went wrong.