Skip to content

Commit

Permalink
fix UI theme for SplitEditor and CreateFromURL modal
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Jan 30, 2020
1 parent c570fc9 commit 93e09f1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 113 deletions.
26 changes: 9 additions & 17 deletions browser/components/MarkdownSplitEditor.styl
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,14 @@
z-index 10
cursor col-resize

body[data-theme="dark"]
.root
.slider
border-left 1px solid $ui-dark-borderColor
apply-theme(theme)
body[data-theme={theme}]
.root
.slider
border-left 1px solid get-theme-var(theme, 'borderColor')

body[data-theme="solarized-dark"]
.root
.slider
border-left 1px solid $ui-solarized-dark-borderColor
for theme in 'dark' 'dracula' 'solarized-dark'
apply-theme(theme)

body[data-theme="monokai"]
.root
.slider
border-left 1px solid $ui-monokai-borderColor

body[data-theme="dracula"]
.root
.slider
border-left 1px solid $ui-dracula-borderColor
for theme in $themes
apply-theme(theme)
121 changes: 25 additions & 96 deletions browser/main/modals/CreateMarkdownFromURLModal.styl
Original file line number Diff line number Diff line change
Expand Up @@ -51,110 +51,39 @@
font-size 14px
colorPrimaryButton()

body[data-theme="dark"]
.root
modalDark()
width 500px
height 270px
overflow hidden
position relative

.header
background-color transparent
border-color $ui-dark-borderColor
color $ui-dark-text-color

.control-folder-label
color $ui-dark-text-color

.control-folder-input
border 1px solid $ui-input--create-folder-modal
color white

.description
color $ui-inactive-text-color

.control-confirmButton
colorDarkPrimaryButton()

body[data-theme="solarized-dark"]
.root
modalSolarizedDark()
width 500px
height 270px
overflow hidden
position relative

.header
background-color transparent
border-color $ui-dark-borderColor
color $ui-solarized-dark-text-color

.control-folder-label
color $ui-solarized-dark-text-color

.control-folder-input
border 1px solid $ui-input--create-folder-modal
color white

.description
color $ui-inactive-text-color

.control-confirmButton
colorSolarizedDarkPrimaryButton()

.error
text-align center
color #F44336

body[data-theme="monokai"]
.root
modalMonokai()
width 500px
height 270px
overflow hidden
position relative

.header
background-color transparent
border-color $ui-dark-borderColor
color $ui-monokai-text-color

.control-folder-label
color $ui-monokai-text-color

.control-folder-input
border 1px solid $ui-input--create-folder-modal
color white

.description
color $ui-inactive-text-color
apply-theme(theme)
body[data-theme={theme}]
.root
background-color transparent
width 500px
height 270px
overflow hidden
position relative

.control-confirmButton
colorMonokaiPrimaryButton()
.header
background-color transparent
border-color get-theme-var(theme, 'borderColor')
color get-theme-var(theme, 'text-color')

body[data-theme="dracula"]
.root
modalDracula()
width 500px
height 270px
overflow hidden
position relative
.control-folder-label
color get-theme-var(theme, 'text-color')

.header
background-color transparent
border-color $ui-dracula-borderColor
color $ui-dracula-text-color
.control-folder-input
border 1px solid $ui-input--create-folder-modal
color white

.control-folder-label
color $ui-dracula-text-color
.description
color $ui-inactive-text-color

.control-folder-input
border 1px solid $ui-input--create-folder-modal
color white
.control-confirmButton
colorThemedPrimaryButton(theme)

.description
color $ui-inactive-text-color
for theme in 'dark' 'dracula' 'solarized-dark'
apply-theme(theme)

.control-confirmButton
colorDraculaPrimaryButton()
for theme in $themes
apply-theme(theme)

0 comments on commit 93e09f1

Please sign in to comment.