Commit graph

10 commits

Author SHA1 Message Date
Devin Lin
1bdd4bf1ee initialstart: Port libkscreen usage after isPrimary was removed
https://invent.kde.org/plasma/libkscreen/-/merge_requests/265 removed
isPrimary
2025-12-04 22:07:40 -05:00
Devin Lin
f0dd24e8bd initialstart/prepare: Gracefully handle kscreen late start and null
checks

Handle situations where the GetConfigOperation never succeeds (really early start
of initialstart) with callbacks so users can still set the scale. Also
guard more aggressively against nullptr
2025-11-25 11:17:54 -05:00
Devin Lin
339cec2b8a initialstart: Add null check for if kscreen config can't be fetched 2025-09-06 08:10:12 +02:00
Devin Lin
a029f18eeb initialstart: Make scaling option more robust
Currently when the app starts, the scaling of all monitors gets changed
to a combobox value. This change makes it so that only the primary
monitor is affected, and that it only sets the scaling when the user
interacts with the combobox.
2025-03-07 17:01:48 +00:00
Devin Lin
c7e5003596 screenbrightnessplugin: Extract from initialstart and use in shell
This is partially an emergency fix also for
https://invent.kde.org/plasma/plasma-mobile/-/issues/404, which was
potentially introduced by https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/582

This MR extracts the screen brightness implementation from initialstart
to a QML plugin, and also ports the action drawer brightness slider
implementation to it. This avoids importing the powerdevil screen
brightness plugin on the lockscreen, which apparently has a race
condition that causes it to sometimes segfault.
2024-10-08 22:47:30 -07:00
Devin Lin
7e3d230f2e initialstart: Provide more scaling options
Often scaling is in multiples of 25%, add more options to support this
2024-10-09 01:50:46 +00:00
Devin Lin
0347ac1453 initialstart: Add dark mode switch 2023-11-08 23:22:26 -08:00
Devin Lin
e82af2b681 initialstart: Use DBus api to set brightness
Port away from deprecated P5Support.DataSource, doesn't seem to work anyway in this case
2023-11-06 06:18:19 +00:00
Devin Lin
a83a723e97 initialstart: Use proper libkscreen APIs to set display scaling 2023-11-05 19:09:47 -08:00
Devin Lin
5c0fd57600 initialstart: Add first login experience
Adds an experience for users on first login, allowing some basic configuration.

This is separate from a first start wizard, which would run as a separate user with elevated permissions, and include options that an installer would have.
2023-04-01 07:09:57 +00:00