Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme Switcher #96

Closed
realtica opened this issue Nov 27, 2022 · 2 comments
Closed

Theme Switcher #96

realtica opened this issue Nov 27, 2022 · 2 comments

Comments

@realtica
Copy link

Hello and great work!

How can I do the switcher button works?
How can hide that button?

@Jieiku
Copy link
Owner

Jieiku commented Nov 27, 2022

In config.toml set this line:

js_switcher = false

Also in config.toml comment out these lines:

#js_theme = "theme.min.js" # Separate Always, comment out if using -auto/-light/-dark stylesheet. (required for switcher)
#js_themeButton = "theme_button.js"# Bundleable

########## Switcher ########## (comment this block out if NOT using switcher):
#stylesheets = [ "abridge-switcher.css" ] # Orange Automatic Dark/Light Theme based on browser/system preference with switcher

Then below in config.toml uncomment one of the themes:

########## No Switcher ##########
#stylesheets = [ "abridge.css" ] # Orange Automatic Dark/Light Theme based on browser/system preference
#stylesheets = [ "abridge-blue.css" ] # Blue Automatic Night/Light Theme based on browser/system preference
#stylesheets = [ "abridge-blueshade.css" ] # BlueShade Automatic Night/Light Theme based on browser/system preference

stylesheets = [ "abridge-dark.css" ] # Orange Dark Theme

#stylesheets = [ "abridge-light.css" ] # Orange Light Theme
#stylesheets = [ "abridge-blue-dark.css" ] # Blue Dark Theme
#stylesheets = [ "abridge-blue-light.css" ] # Blue Light Theme
#stylesheets = [ "abridge-blueshade-dark.css" ] # BlueShade Dark Theme
#stylesheets = [ "abridge-blueshade-light.css" ] # BlueShade Light Theme

@Jieiku Jieiku closed this as completed Dec 9, 2022
@Jieiku
Copy link
Owner

Jieiku commented Apr 28, 2023

The plan is for this to be much simpler when the refactor branch gets merged, right now the config is a bit convoluted.

#105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants