feat: How about add light/dark theme mode?
➊ editor theme follow app theme
- when app theme change between dark/light the editor theme also change with dark/light.
like something in Kate:
when i change color scheme (app theme) to a light/dark one,
the color theme (editor theme) auto changed
//Most of its editor themes include *-light and *-dark variations.
app dark
app light
And,
➋ app theme follow system theme
- when system change dark/light the app theme auto change with dark/light.
i made it. just works (on ubuntu22, gnome42)
Preview
https://github.com/user-attachments/assets/0587aff3-33b3-48b0-a66d-98d1c7bdaa95
New options
in editor options: a dark scheme for ➊ :
in app options: a dark theme for ➋:
Maybe a tab (or toggle button) for theme-mode signle-theme | light-dark-theme will better,
(i didn't tune the options UI, just make it work first)
like the theme settings in github
if anyone want try it the code is here https://github.com/visualfc/liteide/compare/master...yurenchen000:liteide:chen-add_theme_manager
currently
-
[x] ➊ editor theme follow app theme // all support maybe, when change app theme
-
[ ] ➋ app theme follow system theme, currently it only support
- [x] linux with gnome, use
gsettings monitor//tested on ubuntu22, gnome42, x11 - [ ] win
- [ ] mac
- [x] linux with gnome, use
how's it going
@visualfc