mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
quicksettings/nightcolor: Sync settings
Night Light settings had been changed in 6.5
This commit is contained in:
parent
253fa68ff9
commit
4cfe3d6a27
2 changed files with 6 additions and 43 deletions
|
|
@ -12,28 +12,14 @@ namespace ColorCorrect
|
|||
{
|
||||
Q_NAMESPACE
|
||||
enum NightColorMode {
|
||||
/**
|
||||
* Color temperature is computed based on the current position of the Sun.
|
||||
*
|
||||
* Location of the user is provided by Plasma.
|
||||
*/
|
||||
Automatic,
|
||||
/**
|
||||
* Color temperature is computed based on the current position of the Sun.
|
||||
*
|
||||
* Location of the user is provided by themselves.
|
||||
*/
|
||||
Location,
|
||||
/**
|
||||
* Color temperature is computed based on the current time.
|
||||
*
|
||||
* Sunrise and sunset times have to be specified by the user.
|
||||
*/
|
||||
Timings,
|
||||
/**
|
||||
* Color temperature is constant throughout the day.
|
||||
*/
|
||||
Constant,
|
||||
/**
|
||||
* The color temperature is adjusted based on time of day.
|
||||
*/
|
||||
DarkLight,
|
||||
};
|
||||
|
||||
Q_ENUM_NS(NightColorMode)
|
||||
|
|
|
|||
|
|
@ -16,12 +16,10 @@
|
|||
</entry>
|
||||
<entry name="Mode" type="Enum">
|
||||
<choices name="ColorCorrect::NightColorMode">
|
||||
<choice name="Automatic"/>
|
||||
<choice name="Location"/>
|
||||
<choice name="Times"/>
|
||||
<choice name="Constant"/>
|
||||
<choice name="DarkLight"/>
|
||||
</choices>
|
||||
<default>Automatic</default>
|
||||
<default>DarkLight</default>
|
||||
</entry>
|
||||
<entry name="DayTemperature" type="Int">
|
||||
<default>6500</default>
|
||||
|
|
@ -29,27 +27,6 @@
|
|||
<entry name="NightTemperature" type="Int">
|
||||
<default>4500</default>
|
||||
</entry>
|
||||
<entry name="LatitudeAuto" type="Double">
|
||||
<default>0.</default>
|
||||
</entry>
|
||||
<entry name="LongitudeAuto" type="Double">
|
||||
<default>0.</default>
|
||||
</entry>
|
||||
<entry name="LatitudeFixed" type="Double">
|
||||
<default>0.</default>
|
||||
</entry>
|
||||
<entry name="LongitudeFixed" type="Double">
|
||||
<default>0.</default>
|
||||
</entry>
|
||||
<entry name="MorningBeginFixed" type="String">
|
||||
<default>0600</default>
|
||||
</entry>
|
||||
<entry name="EveningBeginFixed" type="String">
|
||||
<default>1800</default>
|
||||
</entry>
|
||||
<entry name="TransitionTime" type="Int">
|
||||
<default>30</default>
|
||||
</entry>
|
||||
</group>
|
||||
</kcfg>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue