Bug 499343

Summary: keyboard shortcut to switch between light and dark themes
Product: [Applications] kate Reporter: duran55 <duran55>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: christoph, kdedev, waqar.17a
Priority: NOR    
Version First Reported In: 23.08.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description duran55 2025-01-30 19:52:31 UTC
Hi,
first thank you for Kate - it is top level editor, compared to other text editors such as Sublime Text.

I would like to request one feature: Please add easy way to switch between Light and Dark syntax highlight themes. For example during the day I use Gruvbox Light and during the night I use Gruvbox Dark. It will be helpful if the switching is done with a keyboard shortcut. Otherwise it is too many clicks for something that happens every day (I am using the editor on daily basis). To clarify again - I am talking about Editor Color Theme, not Window Color Scheme.

I suggest providing the user with an optional keyboard shortcut (toggle). No need to assign a default key, user can configure it via "Configure Keyboard Shortcuts".

SOFTWARE/OS VERSIONS
Kate Version 23.08.5
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Comment 1 Waqar Ahmed 2025-01-31 05:15:58 UTC
I am not sure we should do this.
Comment 2 duran55 2025-02-05 13:44:00 UTC
Ok, what about another option: expose a dbus interface to set theme by name. Then I will write a bash script to change the theme via dbus and use KDE Global Shorcuts to call the script.
Comment 3 TraceyC 2025-08-06 00:35:59 UTC
Is this more feasible with the work being done on changing the global theme based on time of day?
Comment 4 Christoph Cullmann 2025-08-06 05:34:19 UTC
That is unrelated. If one wants e.g. settings to say what the auto light and dark theme should be, that will need some patch.
Comment 5 Christoph Cullmann 2025-08-06 05:35:54 UTC
(In reply to Christoph Cullmann from comment #4)
> That is unrelated. If one wants e.g. settings to say what the auto light and
> dark theme should be, that will need some patch.

And I misread the bug, that was an other one with the theme defaults. Kate will adapt to the global theme change.