Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions browser/main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class Main extends React.Component {
'menubar:togglemenubar',
this.toggleMenuBarVisible.bind(this)
)
clearInterval(this.refreshTheme)
}

toggleMenuBarVisible() {
Expand Down
4 changes: 2 additions & 2 deletions browser/main/lib/ThemeManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const chooseTheme = ui => {
const minutes = now.getHours() * 60 + now.getMinutes()

const isEndAfterStart = end > start
const isBetweenStartAndEnd = minutes >= start && minutes <= end
const isBetweenEndAndStart = minutes >= start || minutes <= end
const isBetweenStartAndEnd = minutes >= start && minutes < end
const isBetweenEndAndStart = minutes >= start || minutes < end
Comment on lines +20 to +21
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've fixed the problem. It was just the way I was comparing the dates. If you scheduled the change to happen at 15:30, it would change only at 15:31.


if (
(isEndAfterStart && isBetweenStartAndEnd) ||
Expand Down
4 changes: 2 additions & 2 deletions browser/main/modals/PreferencesModal/UiTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class UiTab extends React.Component {
</div>
<div styleName='group-section'>
<div styleName='container'>
<div styleName='range-slider' id='firstRow'>
<div id='firstRow'>
<span
id='rs-bullet-1'
styleName='rs-label'
Expand All @@ -353,7 +353,7 @@ class UiTab extends React.Component {
onChange={e => this.handleUIChange(e)}
/>
</div>
<div styleName='range-slider' id='secondRow'>
<div id='secondRow'>
<span
id='rs-bullet-2'
styleName='rs-label'
Expand Down