liteide icon indicating copy to clipboard operation
liteide copied to clipboard

feat: How about add light/dark theme mode?

Open yurenchen000 opened this issue 5 months ago • 3 comments

➊ 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 Image

app light Image


And,

➋ app theme follow system theme

  • when system change dark/light the app theme auto change with dark/light.

yurenchen000 avatar Sep 09 '25 12:09 yurenchen000

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 ➊ :

1-editor_option



in app options: a dark theme for ➋:

2-app_option



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

github_dark_sync-

yurenchen000 avatar Sep 14 '25 22:09 yurenchen000

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

yurenchen000 avatar Sep 21 '25 07:09 yurenchen000

how's it going

@visualfc

yurenchen000 avatar Oct 13 '25 15:10 yurenchen000