quicksettings/nightcolor: Sync settings

Night Light settings had been changed in 6.5
This commit is contained in:
Vlad Zahorodnii 2025-10-08 16:33:41 +03:00 committed by Devin Lin
parent 253fa68ff9
commit 4cfe3d6a27
2 changed files with 6 additions and 43 deletions

View file

@ -12,28 +12,14 @@ namespace ColorCorrect
{ {
Q_NAMESPACE Q_NAMESPACE
enum NightColorMode { 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. * Color temperature is constant throughout the day.
*/ */
Constant, Constant,
/**
* The color temperature is adjusted based on time of day.
*/
DarkLight,
}; };
Q_ENUM_NS(NightColorMode) Q_ENUM_NS(NightColorMode)

View file

@ -16,12 +16,10 @@
</entry> </entry>
<entry name="Mode" type="Enum"> <entry name="Mode" type="Enum">
<choices name="ColorCorrect::NightColorMode"> <choices name="ColorCorrect::NightColorMode">
<choice name="Automatic"/>
<choice name="Location"/>
<choice name="Times"/>
<choice name="Constant"/> <choice name="Constant"/>
<choice name="DarkLight"/>
</choices> </choices>
<default>Automatic</default> <default>DarkLight</default>
</entry> </entry>
<entry name="DayTemperature" type="Int"> <entry name="DayTemperature" type="Int">
<default>6500</default> <default>6500</default>
@ -29,27 +27,6 @@
<entry name="NightTemperature" type="Int"> <entry name="NightTemperature" type="Int">
<default>4500</default> <default>4500</default>
</entry> </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> </group>
</kcfg> </kcfg>