Commit graph

312 commits

Author SHA1 Message Date
Ivailo Monev
795cb31a59 generic: remove redundant HAVE_XRENDER configuration definition
if Xrender is not found a fatal message will be issued by the top-level
CMakeLists file because it is required by KWin compositor for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-25 00:46:00 +02:00
Ivailo Monev
243f64bdfd kcontrol: read font settings directly from the kdeglobals config
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 20:12:44 +02:00
Ivailo Monev
56b3159f80 kcontrol: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 19:55:04 +02:00
Ivailo Monev
45778efb45 kcontrol: enable animatetoolbox when effects are enabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 15:46:06 +02:00
Ivailo Monev
9ed7286504 kcontrol: partial fix for KGlobalSettings race
the style KCM for example emits changes via
KGlobalSettings::self()->emitChange() however it does not wait for the
KGlobalSettings::settingsChanged() signal (which means settings are
reloaded) before running krdb, font and palette settings are likely subject
to this race-condition but for now that will do

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 05:18:50 +02:00
Ivailo Monev
35151a7d91 generic: adjust to KGlobalSettings changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 05:05:45 +02:00
Ivailo Monev
617366c72d kcontrol: remove unused applyQtColors() and applyQtSettings() arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 02:29:27 +02:00
Ivailo Monev
71e0885005 kcontrol: run krdb after emiting KGlobalSettings changes from style KCM
krdb itself uses KGlobalSettings to get the palette, font and other
settings

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 02:28:15 +02:00
Ivailo Monev
26a25dae5f kcontrol: flush the QSettings changes before notifying applications about the changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 02:16:34 +02:00
Ivailo Monev
2266ab6cba kcontrol: enable Katie effects based on Katana graphics effect level
note that the only way to set EffectsEnabled, EffectFadeMenu,
EffectFadeTooltip and EffectAnimateCombo was manually (by editing the
~/.katana/share/config/kdeglobals config file) because there is no GUI for
those config options but there is for the graphics effects level

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-21 23:51:37 +02:00
Ivailo Monev
8b2eba7361 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-13 01:41:49 +02:00
Ivailo Monev
3e62be6595 kcontrol: indent and format randr module source and header files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-06 12:59:52 +02:00
Ivailo Monev
74cd0ad0f5 kcontrol: indent and format randr module source and header files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-06 12:47:56 +02:00
Ivailo Monev
24082b4a04 kcontrol: I am the maintainer of kdebug KCM since 2014
it has been that long?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-06 11:52:18 +02:00
Ivailo Monev
4f40e8fa19 kcontrol: save kdebug KCM changes when the output file changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-06 11:50:14 +02:00
Ivailo Monev
000dfaa7e3 kcontrol: save kdebug KCM settings when destination changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-06 11:34:07 +02:00
Ivailo Monev
347f9d7177 kcontrol: merge DesktopStartItem class into AutoStartItem
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 12:47:53 +02:00
Ivailo Monev
12bb86ae51 kcontrol: write Name entry for custom desktop files from autostart KCM
otherwise it is empty the next time autostart KCM loads the .desktop files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 11:48:13 +02:00
Ivailo Monev
c80d049e53 kcontrol: disable autostart items the filepath of which is not writable
this is kinda not according to the spec (which allows user overrides) but
what is the outcome of having a local copy of system file?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 08:19:26 +02:00
Ivailo Monev
897ca32dcf kcontrol: fix autostart add
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 08:07:16 +02:00
Ivailo Monev
e5a021693f kcontrol: notify when error occurrs when attempting to remove program autostart
can happen if the .desktop file is in /usr/share/autostart/ for example and
the user cannot write there

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 07:44:58 +02:00
Ivailo Monev
967aed50d1 kcontrol: skip non-existing directories in autostart KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 07:43:12 +02:00
Ivailo Monev
361cdfb5f7 generic: prepare for autostart changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 09:40:50 +02:00
Ivailo Monev
1a87bf0849 kcontrol: drop support for scripts in autostart KCM
see the previous commit, also fixes detection of programs that are
automatically started by using KStandardDirs to find the autostart
directories

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 09:21:35 +02:00
Ivailo Monev
e159cc5e21 kcontrol: use mutable list iterator in RandRCrtc::modes()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 14:24:31 +02:00
Ivailo Monev
b6405cb178 kcontrol: formant and indent randr KCM files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 14:20:15 +02:00
Ivailo Monev
609a72aa84 kcontrol: drop legacy configuration support in randr KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 16:35:42 +02:00
Ivailo Monev
881a427576 generic: rework startup to no create a shell script
by the time ksplash gets the X11 events for startup phases the startup
process is (and should be) done, especially after the display
configuration is done and the monitor is ready to output thus ksplash
does not really indicate much

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 11:29:28 +02:00
Ivailo Monev
b1e456a448 generic: default to Oxygen_White for cursor theme
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 10:40:54 +02:00
Ivailo Monev
7c7c86f851 kcontrol: apply input settings in phase zero
it changes the cursor theme and it has to be done as soon as possible

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 04:48:49 +02:00
Ivailo Monev
ee8f1a165a kcontrol: replace tab with space in input KCM source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 04:47:06 +02:00
Ivailo Monev
ca644e1af2 kcontrol: iterate over a consant in loadPreview() function of icons KCM
fixes crash

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-29 06:18:12 +03:00
Ivailo Monev
31d43b3194 kcontrol: iterate over a static list of possibilities in dateandtime KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-29 04:57:31 +03:00
Ivailo Monev
a5fa8348e3 krunner: remove redundant startup notification feature
KWin has effect for it, I am not sure if it should be done by KWin but
if it is done by krunner and krunner is not started in Katana session it
may interfere with whatever is (potentially) doing startup notification
feedback. obviously, same goes for KWin but now it is done only from
one program

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-27 05:10:25 +03:00
Ivailo Monev
8e832c580c generic: lower the busy cursor timeout to 10sec
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-26 08:16:41 +03:00
Ivailo Monev
ee0ef897a8 kcontrol: clear KDebug cache when saving kdebug KCM changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-23 03:06:25 +03:00
Ivailo Monev
cb142336e4 kcontrol: log fonts KCM debug message to the default area
1208 is reserved for kinfocenter

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-22 21:47:16 +03:00
Ivailo Monev
fbd2f9e65b generic: adjust to KDebug changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-22 19:31:24 +03:00
Ivailo Monev
c1338dc1a5 kcontrol: convert input KCM pixmaps to PNG
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-20 23:33:09 +03:00
Ivailo Monev
bda0575c44 kcontrol: convert fonts KCM pixmaps to PNG
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-20 22:42:50 +03:00
Ivailo Monev
e12b0359ba kcontrol: enable sorting of the timezones table entries in dateandtime KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-20 01:01:03 +03:00
Ivailo Monev
94006c31a8 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-18 04:09:12 +03:00
Ivailo Monev
4329ee885b kcontrol: update toolTip and whatsThis properties in componentchoser module
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-15 14:40:36 +03:00
Ivailo Monev
0dda4acb2c generic: prepare for new kemail library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-15 04:14:27 +03:00
Ivailo Monev
936c69c827 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-14 16:19:24 +03:00
Ivailo Monev
88db934aa7 generic: use the new karchive library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 16:56:10 +03:00
Ivailo Monev
b7cdaeeae8 kcontrol: remove kfontinst
it includes the hidden KIO slave, font viewer, font installer, font
manager (enable/disable user or system fonts) and thumbnailer.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 13:55:18 +03:00
Ivailo Monev
dc331742e4 kcontrol: make use of KSystemTimeZones::zoneinfoDir() in dateandtime helper
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-02 16:43:10 +03:00
Ivailo Monev
4ebf0c5a3d kcontrol: refernce camel-case Fontconfig module variables too
fixes build failure due to kde4_optional_find_package() not setting
upper-case variables like macro_optional_find_package() did.

for reference:
a3a1e69f8a

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-02 14:21:22 +03:00
Ivailo Monev
8d5a89b004 kcontrol: remove X11 types hack
can't tell why it was done

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-02 00:23:57 +03:00