forked from Shinonome/dots-hyprland
more intuitive power profiles icons
This commit is contained in:
@@ -129,9 +129,9 @@ Item {
|
|||||||
horizontalAlignment: Qt.AlignHCenter
|
horizontalAlignment: Qt.AlignHCenter
|
||||||
fill: 0
|
fill: 0
|
||||||
text: switch(PowerProfiles.profile) {
|
text: switch(PowerProfiles.profile) {
|
||||||
case PowerProfile.PowerSaver: return "battery_saver"
|
case PowerProfile.PowerSaver: return "energy_savings_leaf"
|
||||||
case PowerProfile.Balanced: return "dynamic_form"
|
case PowerProfile.Balanced: return "settings_slow_motion"
|
||||||
case PowerProfile.Performance: return "speed"
|
case PowerProfile.Performance: return "local_fire_department"
|
||||||
}
|
}
|
||||||
iconSize: Appearance.font.pixelSize.large
|
iconSize: Appearance.font.pixelSize.large
|
||||||
color: Appearance.colors.colOnLayer2
|
color: Appearance.colors.colOnLayer2
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ ApiStrategy {
|
|||||||
// Real stuff
|
// Real stuff
|
||||||
try {
|
try {
|
||||||
const dataJson = JSON.parse(cleanData);
|
const dataJson = JSON.parse(cleanData);
|
||||||
console.log(JSON.stringify(dataJson, null, 2));
|
|
||||||
let newContent = "";
|
let newContent = "";
|
||||||
|
|
||||||
const responseContent = dataJson.choices[0]?.delta?.content || dataJson.message?.content;
|
const responseContent = dataJson.choices[0]?.delta?.content || dataJson.message?.content;
|
||||||
|
|||||||
Reference in New Issue
Block a user