Skip to content

Commit

Permalink
remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
hypebright committed Mar 24, 2024
1 parent 120c93e commit 3ab7a9c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 34 deletions.
4 changes: 2 additions & 2 deletions inst/shinyMobile-1.0.1/dist/shinyMobile.min.css.map

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions inst/shinyMobile-1.0.1/dist/shinyMobile.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions inst/shinyMobile-1.0.1/dist/shinyMobile.min.js.map

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions srcjs/helpers/helpers-theme.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

// Style for touch plugin
const setTouchStyle = (config) => {
// TO DO: check whether we still need this ...
if (config.hasOwnProperty("touch")) {
if (config.touch.tapHold) {
$("<style>")
Expand All @@ -16,15 +15,15 @@ const setTouchStyle = (config) => {
}
}
};

// Set dark mode
const setDarkMode = (config, app) => {
if (!config.hasOwnProperty('dark')) config.darkMode = false;
app.setDarkMode(config.dark);
};

export const initTheme = (config, app) => {
setTouchStyle(config);
setDarkMode(config, app);
app.setColorTheme(config.color);
};
};

0 comments on commit 3ab7a9c

Please sign in to comment.