mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Use mix instead of interpolate
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"POT-Creation-Date: 2024-03-11 09:26+0000\n"
|
"POT-Creation-Date: 2024-03-11 10:27+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@@ -167,82 +167,77 @@ msgctxt "PageAura"
|
|||||||
msgid "Aura mode"
|
msgid "Aura mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:55
|
#: rog-control-center/ui/pages/aura.slint:56
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Colour 1"
|
msgid "Colour 1"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:76
|
#: rog-control-center/ui/pages/aura.slint:82
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Colour 2"
|
msgid "Colour 2"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:103
|
#: rog-control-center/ui/pages/aura.slint:114
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Zone"
|
msgid "Zone"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:123
|
#: rog-control-center/ui/pages/aura.slint:137
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Direction"
|
msgid "Direction"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:143
|
#: rog-control-center/ui/pages/aura.slint:159
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Speed"
|
msgid "Speed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:162
|
#: rog-control-center/ui/pages/aura.slint:180
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Power Settings"
|
msgid "Power Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:170
|
#: rog-control-center/ui/pages/aura.slint:211 rog-control-center/ui/pages/aura.slint:364 rog-control-center/ui/pages/aura.slint:424
|
||||||
msgctxt "PageAura"
|
|
||||||
msgid "Apply Aura"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:203 rog-control-center/ui/pages/aura.slint:356 rog-control-center/ui/pages/aura.slint:416
|
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Keyboard"
|
msgid "Keyboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:227
|
#: rog-control-center/ui/pages/aura.slint:235
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Lid Logo"
|
msgid "Lid Logo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:251
|
#: rog-control-center/ui/pages/aura.slint:259
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Lightbar"
|
msgid "Lightbar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:275
|
#: rog-control-center/ui/pages/aura.slint:283
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Lid Zone"
|
msgid "Lid Zone"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:299
|
#: rog-control-center/ui/pages/aura.slint:307
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Rear Glow"
|
msgid "Rear Glow"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:362 rog-control-center/ui/pages/aura.slint:422
|
#: rog-control-center/ui/pages/aura.slint:370 rog-control-center/ui/pages/aura.slint:430
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Boot"
|
msgid "Boot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:367 rog-control-center/ui/pages/aura.slint:427
|
#: rog-control-center/ui/pages/aura.slint:375 rog-control-center/ui/pages/aura.slint:435
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Awake"
|
msgid "Awake"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:372 rog-control-center/ui/pages/aura.slint:432
|
#: rog-control-center/ui/pages/aura.slint:380 rog-control-center/ui/pages/aura.slint:440
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Sleep"
|
msgid "Sleep"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/pages/aura.slint:377 rog-control-center/ui/pages/aura.slint:437
|
#: rog-control-center/ui/pages/aura.slint:385 rog-control-center/ui/pages/aura.slint:445
|
||||||
msgctxt "PageAura"
|
msgctxt "PageAura"
|
||||||
msgid "Shutdown"
|
msgid "Shutdown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -397,37 +392,37 @@ msgctxt "PageSystem"
|
|||||||
msgid "Throttle Policy on AC"
|
msgid "Throttle Policy on AC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/widgets/aura_power.slint:32
|
#: rog-control-center/ui/widgets/aura_power.slint:33
|
||||||
msgctxt "AuraPowerGroup"
|
msgctxt "AuraPowerGroup"
|
||||||
msgid "Boot"
|
msgid "Boot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/widgets/aura_power.slint:42
|
#: rog-control-center/ui/widgets/aura_power.slint:43
|
||||||
msgctxt "AuraPowerGroup"
|
msgctxt "AuraPowerGroup"
|
||||||
msgid "Awake"
|
msgid "Awake"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/widgets/aura_power.slint:52
|
#: rog-control-center/ui/widgets/aura_power.slint:53
|
||||||
msgctxt "AuraPowerGroup"
|
msgctxt "AuraPowerGroup"
|
||||||
msgid "Sleep"
|
msgid "Sleep"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/widgets/aura_power.slint:62
|
#: rog-control-center/ui/widgets/aura_power.slint:63
|
||||||
msgctxt "AuraPowerGroup"
|
msgctxt "AuraPowerGroup"
|
||||||
msgid "Shutdown"
|
msgid "Shutdown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/main_window.slint:48
|
#: rog-control-center/ui/main_window.slint:45
|
||||||
msgctxt "MainWindow"
|
msgctxt "MainWindow"
|
||||||
msgid "ROG"
|
msgid "ROG"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/main_window.slint:49
|
#: rog-control-center/ui/main_window.slint:47
|
||||||
msgctxt "Menu1"
|
msgctxt "Menu1"
|
||||||
msgid "System Control"
|
msgid "System Control"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/main_window.slint:49
|
#: rog-control-center/ui/main_window.slint:48
|
||||||
msgctxt "Menu2"
|
msgctxt "Menu2"
|
||||||
msgid "Keyboard Aura"
|
msgid "Keyboard Aura"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -437,21 +432,26 @@ msgctxt "Menu3"
|
|||||||
msgid "AniMe Matrix"
|
msgid "AniMe Matrix"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/main_window.slint:49
|
#: rog-control-center/ui/main_window.slint:50
|
||||||
msgctxt "Menu4"
|
msgctxt "Menu4"
|
||||||
msgid "Fan Curves"
|
msgid "Fan Curves"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/main_window.slint:49
|
#: rog-control-center/ui/main_window.slint:51
|
||||||
msgctxt "Menu5"
|
msgctxt "Menu5"
|
||||||
msgid "App Settings"
|
msgid "App Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/main_window.slint:49
|
#: rog-control-center/ui/main_window.slint:52
|
||||||
msgctxt "Menu6"
|
msgctxt "Menu6"
|
||||||
msgid "About"
|
msgid "About"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: rog-control-center/ui/main_window.slint:64
|
||||||
|
msgctxt "MainWindow"
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: rog-control-center/ui/types/aura_types.slint:69
|
#: rog-control-center/ui/types/aura_types.slint:69
|
||||||
msgctxt "Aura brightness"
|
msgctxt "Aura brightness"
|
||||||
msgid "Off"
|
msgid "Off"
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export component ColourSlider inherits VerticalLayout {
|
|||||||
rgb(c1.red * f, c1.green * f, c1.blue * f)
|
rgb(c1.red * f, c1.green * f, c1.blue * f)
|
||||||
}//
|
}//
|
||||||
function set_base_colour() {
|
function set_base_colour() {
|
||||||
root.base_colour = base_colours[c1.value].interpolate(base_colours[c1.value + 1], c1.value - Math.floor(c1.value));
|
root.base_colour = base_colours[c1.value].mix(base_colours[c1.value + 1], c1.value - Math.floor(c1.value));
|
||||||
root.final_colour = blend_lightness(base_colour, ((base_shade.length - c2.value) / base_shade.length));
|
root.final_colour = blend_lightness(base_colour, ((base_shade.length - c2.value) / base_shade.length));
|
||||||
root.colourbox = root.final_colour;
|
root.colourbox = root.final_colour;
|
||||||
}//
|
}//
|
||||||
@@ -150,8 +150,6 @@ export component ColourSlider inherits VerticalLayout {
|
|||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
border-color: Palette.border;
|
border-color: Palette.border;
|
||||||
background <=> root.colourbox;
|
background <=> root.colourbox;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user