💥 ags(nightlight, control-center/nightlight): fixed wrong fidelity temperature value (10000 changed to 6000)

This commit is contained in:
retrozinndev
2025-04-18 21:41:21 -03:00
parent d66d2f1d5a
commit 7fdcd7feee
2 changed files with 17 additions and 11 deletions
@@ -12,7 +12,7 @@ export const TileNightLight = Tile({
bind(NightLight.getDefault(), "temperature"),
bind(NightLight.getDefault(), "gamma")
], (temp, gamma) =>
(temp === 10000 ? tr("control_center.tiles.night_light.default_desc")
(temp === 6000 ? tr("control_center.tiles.night_light.default_desc")
: `${temp}K`) + (gamma < NightLight.getDefault().maxGamma ?
` (${gamma}%)` : "")
)(),
@@ -21,6 +21,5 @@ export const TileNightLight = Tile({
onToggledOn: () => NightLight.getDefault().identity = false,
enableOnClickMore: true,
onClickMore: () => togglePage(PageNightLight),
toggleState: bind(NightLight.getDefault(), "identity").as(identity =>
identity ? false : true)
toggleState: bind(NightLight.getDefault(), "identity").as(identity => !identity)
} as TileProps);