-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
Button for the toolbar to change/cycle through Themes #2010
Comments
Similar to #2042 (comment), in the upcoming v9.2, you can use new API Here is the JSON to add "Change theme" button to toolbar, in the Change to Dark theme: {
"Type": "Button",
"Id": "btn_custom_1",
"Text": "Change to Dark theme",
"DisplayStyle": "Image",
"CheckableConfigBinding": "",
"Alignment": "Left",
"Image": "C:\\path\\to\\icon.svg",
"OnClick": {
"Executable": "IG_ApplySettings",
"Arguments": [
"{ \"DarkTheme\": \"Kobe\", \"LightTheme\": \"Kobe\" }"
]
}
} Change to Light theme: {
"Type": "Button",
"Id": "btn_custom_2",
"Text": "Change to Light theme",
"DisplayStyle": "Image",
"CheckableConfigBinding": "",
"Alignment": "Left",
"Image": "C:\\path\\to\\icon.svg",
"OnClick": {
"Executable": "IG_ApplySettings",
"Arguments": [
"{ \"DarkTheme\": \"Kobe-Light\", \"LightTheme\": \"Kobe-Light\" }"
]
}
} |
Updated: You can assign hotkeys to the toolbar buttons, too! {
"Type": "Button",
"Id": "btn_custom_1",
"Text": "Change to Dark theme",
"DisplayStyle": "Image",
"CheckableConfigBinding": "",
"Alignment": "Left",
"Image": "C:\\path\\to\\icon.svg",
"OnClick": {
"Executable": "IG_ApplySettings",
"Arguments": [
"{ \"DarkTheme\": \"Kobe\", \"LightTheme\": \"Kobe\" }"
]
},
"Hotkeys": ["Alt+D"]
} |
Nice thank you! |
Published ImageGlass 9.2.0.1208 - Maroon 4 |
Describe the feature
I often find myself changing between my light and dark themes depending on the image, to see it in a different context. But it's really annoying to go to the settings every time to change the theme. It would be nice if there was a quick button, able to be placed on the toolbar, or via hotkey, to quickly change the theme.
How to use feature
Additional context
Perhaps the themes could be marked to be changed via the button. I use 3 themes, so it's not really a on/off toggle for me for example.
But even if it's just a Dark mode/Light mode switch (like in many websites) it would still be nice. I could set the dark mode theme and the light mode theme and then just press the switch.
The text was updated successfully, but these errors were encountered: