When using a language that's wordier than English and this label becomes
a two-line string, currently the layout breaks and the string overflows
because the Label item that draws it has no maximum height and elision
mode set.
This commit fixes that by setting them accordingly, and also using a
standard icon size for the icon so that there's actually enough room for
two lines of text.
BUG: 458614
FIXED-IN: 5.24.7
(cherry picked from commit 0dad5f0789)
Track the selected GTK theme in the model only. This fixes setting to default when the GTK pages was never opened
Override isSaveNeeded instead of calling setNeedsSave, this fixes the apply button enablement
(cherry picked from commit 0536cf4140)
The GTK theme name is not managed by KConfigXT, we need to manually track that when determining whether the Defaults button is enabled
BUG: 458292
(cherry picked from commit 05f21f51ba)
While we indeed write both with KConfig::Notify flag interested
processes might only listen to the scheme change instead of
every color scheme group. When they react to the scheme change
the colors have not yet changed.
The colors kcm also does it in this order.
BUG:421745
FIXED-IN:5.24.7
(cherry picked from commit 9a77503f0b)
PreviewWidget has a timer that advances to the next frame of the current
cursor.
"current" can change in setTheme, we need to stop the animation timer
BUG: 456526
(cherry picked from commit ddf88d2148)
This was incorrectly put behind Mode::Apply in commit 34e2541b
("kcms/lookandfeel: allow users to choose what part of a Global Theme to apply")
BUG: 456275
(cherry picked from commit 14f0611e6e)
Tint the window titlebars only when either the option to tint all colors with
accent color or the option to apply accent color to window titlebars is enabled
or both), and in the latter case, the active window titlebars should be painted
in the accent color.
BUG: 455395
BUG: 454047
FIXED-IN: 5.25.3
(cherry picked from commit 00a18a8c5a)
Tint the window titlebars even if the option to make them accent-colored is not
explicitly enabled; in this case you want them tinted anyway because they're a
part of the fill window which will get tinted.
BUG: 455395
FIXED-IN: 5.25.2
(cherry picked from commit 2d272745eb)
In `combineImages`, the width and the height were calculated
incorrectly. This makes the preview image correctly obey the device
pixel ratio of the primary screen, so the preview image can be clear
and sharp.
BUG: 413673
FIXED-IN: 5.25.1
(cherry picked from commit b96d56ae17)
This makes the code and user-facing configuration for accent coloured titlebars
unable to produce some bad results that it previously could.
(cherry picked from commit a671178a8f)
We can not use the required properties, because it breaks the property binding.
ec79af7396 apparently fixes that, however
it is not released as part of Qt6 or is part of the KDE patch collection.
This reverts commit f3293bc59e.
BUG: 453226
(cherry picked from commit 90d36545ea)
On the `load()` method emit the signals to notify that the properties
regarding accent colors have changed, so the UI gets updated accordingly.
They're emitted unconditionally since the minimal performance improvement
wouldn't compense the extra code complexity to check for changes here.
(cherry picked from commit 2b55732fb7)
Before this commit ThemesModel only finds metadata.desktop, but after
KF5.94, the default theme metadata files have been ported to json format.
BUG: 453830