rogcc about page updated, some comments removed

This commit is contained in:
Mykola Shevchenko
2026-01-21 21:35:23 +02:00
parent 3616c049bb
commit a99e408dc3
9 changed files with 72 additions and 84 deletions

View File

@@ -48,6 +48,7 @@ export component MainWindow inherits Window {
min-height: AppSize.height; min-height: AppSize.height;
min-width: AppSize.width; min-width: AppSize.width;
background: Palette.alternate-background; background: Palette.alternate-background;
HorizontalLayout { HorizontalLayout {
padding: 0px; padding: 0px;
VerticalLayout { VerticalLayout {
@@ -184,10 +185,6 @@ export component MainWindow inherits Window {
y: 0px; y: 0px;
width: root.width; width: root.width;
height: root.height; height: root.height;
//padding only has effect on layout elements
//padding: 10px;
background: Palette.background; background: Palette.background;
border-color: Palette.border; border-color: Palette.border;
border-width: 3px; border-width: 3px;

View File

@@ -1,62 +1,77 @@
import { AboutSlint, VerticalBox, HorizontalBox } from "std-widgets.slint"; import {
AboutSlint,
VerticalBox,
HorizontalBox,
ScrollView,
} from "std-widgets.slint";
export component PageAbout inherits VerticalLayout { export component PageAbout inherits VerticalLayout {
padding: 10px; padding: 10px;
spacing: 10px; spacing: 10px;
Text { ScrollView {
vertical-alignment: TextVerticalAlignment.center;
horizontal-alignment: TextHorizontalAlignment.center;
text: "A UI for asusctl made with slint";
font-size: 22px;
}
HorizontalBox { HorizontalBox {
alignment: LayoutAlignment.center;
VerticalBox {
alignment: LayoutAlignment.center; alignment: LayoutAlignment.center;
VerticalBox {
alignment: LayoutAlignment.center;
Text { Text {
wrap: TextWrap.word-wrap; vertical-alignment: TextVerticalAlignment.center;
text: "You need to use kernel version 6.19 to use this software"; horizontal-alignment: TextHorizontalAlignment.center;
} text: "ROG Control Center";
font-size: 22px;
}
Text { Text {
vertical-alignment: TextVerticalAlignment.center; wrap: TextWrap.word-wrap;
horizontal-alignment: TextHorizontalAlignment.center; text: "\nA powerful graphical interface for managing ASUS ROG, TUF, and ProArt laptops on Linux. It acts as the official GUI for the asusctl toolset, allowing for seamless hardware tuning without the command line.";
text: "Todo:"; }
font-size: 22px;
}
Text { Text {
text: "- [ ] Theme the widgets"; font-weight: 900;
} text: "Key Features:";
}
Text { Text {
text: "- [ ] Add a cpu/gpu temp/fan speed info bar"; text: " • Performance: Switch power profiles and customize fan curves.\n • Aura Sync: Control keyboard backlighting and LED effects.\n • Battery Health: Set charge limits to extend battery longevity.\n • Display: Toggle Panel Overdrive and refresh rates.\n • AniMe Matrix: Control AniMe Matrix displays.";
} }
Text { Text {
text: "- [ ] Include fan speeds, temps in a bottom bar"; font-weight: 900;
} text: "Requirements:";
}
Text { Text {
text: "- [ ] Slash control"; text: " • This software requires kernel version 6.19.";
} }
Text { Text {
text: "- [ ] Screenpad controls"; font-weight: 900;
} text: "Work in progress:";
}
Text { Text {
text: "- [ ] ROG Ally specific settings"; text: " • Theme the widgets\n • Add a cpu/gpu temp/fan speed info bar\n • Include fan speeds, temps in a bottom bar\n • Slash control\n • Screenpad controls\n • ROG Ally specific settings";
}
Text {
font-weight: 900;
text: "License:";
}
Text {
text: " This project is open-source software licensed under the Mozilla Public License 2.0 (MPL-2.0).";
}
Text {
font-weight: 900;
text: "Links:";
}
Text {
text: " Source Code: https://gitlab.com/asus-linux/asusctl\n Website: https://asus-linux.org/";
}
} }
} }
} }
Text {
vertical-alignment: TextVerticalAlignment.center;
horizontal-alignment: TextHorizontalAlignment.center;
text: "Work in progress";
font-size: 22px;
}
} }

View File

@@ -36,12 +36,8 @@ export component PageAnime inherits Rectangle {
property <bool> show_display_advanced: false; property <bool> show_display_advanced: false;
property <bool> show_builtin_advanced: false; property <bool> show_builtin_advanced: false;
clip: true; clip: true;
// TODO: slow with border-radius
//padding only has effect on layout elements VerticalLayout {
//padding: 8px;
// height: parent.height - infobar.height - mainview.padding - self.padding * 2;
// TODO: border-radius: 8px;
VerticalLayout {
padding: 10px; padding: 10px;
spacing: 10px; spacing: 10px;
HorizontalLayout { HorizontalLayout {
@@ -194,7 +190,7 @@ export component PageAnime inherits Rectangle {
Button { Button {
x: root.width - self.width - 6px; x: root.width - self.width - 6px;
y: 6px; y: 6px;
text: "X"; text: "";
height: 36px; height: 36px;
clicked => { clicked => {
root.show_builtin_advanced = false; root.show_builtin_advanced = false;
@@ -256,7 +252,7 @@ export component PageAnime inherits Rectangle {
Button { Button {
x: root.width - self.width - 6px; x: root.width - self.width - 6px;
y: 6px; y: 6px;
text: "X"; text: "";
height: 36px; height: 36px;
clicked => { clicked => {
root.show_display_advanced = false; root.show_display_advanced = false;

View File

@@ -15,12 +15,7 @@ export global AppSettingsPageData {
export component PageAppSettings inherits VerticalLayout { export component PageAppSettings inherits VerticalLayout {
Rectangle { Rectangle {
clip: true; clip: true;
// TODO: slow with border-radius
//padding only has effect on layout elements
//padding: 8px;
// height: parent.height - infobar.height - mainview.padding - self.padding * 2;
// TODO: border-radius: 8px;
mainview := VerticalLayout { mainview := VerticalLayout {
padding: 10px; padding: 10px;
spacing: 10px; spacing: 10px;

View File

@@ -17,6 +17,7 @@ export component PageAura inherits Rectangle {
c2.final_colour = AuraPageData.led_mode_data.colour2; c2.final_colour = AuraPageData.led_mode_data.colour2;
c2.external_colour_change(); c2.external_colour_change();
} }
ScrollView { ScrollView {
VerticalLayout { VerticalLayout {
padding: 10px; padding: 10px;
@@ -114,8 +115,6 @@ export component PageAura inherits Rectangle {
min-height: 80px; min-height: 80px;
max-height: 90px; max-height: 90px;
RogItem { RogItem {
//padding only has effect on layout elements
//padding: 0px;
VerticalBox { VerticalBox {
Text { Text {
text: @tr("Zone"); text: @tr("Zone");
@@ -138,8 +137,6 @@ export component PageAura inherits Rectangle {
} }
RogItem { RogItem {
//padding only has effect on layout elements
//padding: 0px;
VerticalBox { VerticalBox {
Text { Text {
text: @tr("Direction"); text: @tr("Direction");
@@ -161,8 +158,6 @@ export component PageAura inherits Rectangle {
} }
RogItem { RogItem {
//padding only has effect on layout elements
//padding: 0px;
VerticalBox { VerticalBox {
Text { Text {
text: @tr("Speed"); text: @tr("Speed");
@@ -246,7 +241,7 @@ export component PageAura inherits Rectangle {
Button { Button {
x: root.width - self.width - 6px; x: root.width - self.width - 6px;
y: 6px; y: 6px;
text: "X"; text: "";
height: 36px; height: 36px;
clicked => { clicked => {
root.show_aura_power = false; root.show_aura_power = false;
@@ -300,7 +295,7 @@ export component PageAura inherits Rectangle {
Button { Button {
x: root.width - self.width - 6px; x: root.width - self.width - 6px;
y: 6px; y: 6px;
text: "X"; text: "";
height: 36px; height: 36px;
clicked => { clicked => {
root.show_aura_power = false; root.show_aura_power = false;

View File

@@ -152,8 +152,7 @@ export component PageSystem inherits Rectangle {
property <bool> show_fade_cover: false; property <bool> show_fade_cover: false;
property <bool> show_throttle_advanced: false; property <bool> show_throttle_advanced: false;
clip: true; clip: true;
//padding only has effect on layout elements
//padding: 8px;
ScrollView { ScrollView {
VerticalLayout { VerticalLayout {
padding: 12px; padding: 12px;
@@ -684,7 +683,7 @@ export component PageSystem inherits Rectangle {
Button { Button {
x: root.width - self.width - 6px; x: root.width - self.width - 6px;
y: 6px; y: 6px;
text: "X"; text: "";
height: 34px; height: 34px;
clicked => { clicked => {
root.show_throttle_advanced = false; root.show_throttle_advanced = false;

View File

@@ -4,8 +4,6 @@ import { PowerZones } from "../types/aura_types.slint";
export component AuraPowerGroup inherits Rectangle { export component AuraPowerGroup inherits Rectangle {
min-width: row.min-width; min-width: row.min-width;
// border-radius: 20px;
// background: Palette.alternate-background;
opacity: 0.9; opacity: 0.9;
in-out property <string> group-title; in-out property <string> group-title;
in-out property <bool> boot_checked; in-out property <bool> boot_checked;
@@ -16,6 +14,7 @@ export component AuraPowerGroup inherits Rectangle {
callback awake_toggled(bool); callback awake_toggled(bool);
callback sleep_toggled(bool); callback sleep_toggled(bool);
callback shutdown_toggled(bool); callback shutdown_toggled(bool);
VerticalBox { VerticalBox {
spacing: 10px; spacing: 10px;
Text { Text {
@@ -72,8 +71,6 @@ export component AuraPowerGroup inherits Rectangle {
export component AuraPowerGroupOld inherits Rectangle { export component AuraPowerGroupOld inherits Rectangle {
min-width: row.min-width; min-width: row.min-width;
// border-radius: 20px;
// background: Palette.alternate-background;
opacity: 0.9; opacity: 0.9;
in-out property <int> current_zone; in-out property <int> current_zone;
in-out property <[int]> zones; in-out property <[int]> zones;
@@ -86,6 +83,7 @@ export component AuraPowerGroupOld inherits Rectangle {
callback awake_toggled(bool); callback awake_toggled(bool);
callback sleep_toggled(bool); callback sleep_toggled(bool);
callback selected_zone(int); callback selected_zone(int);
VerticalBox { VerticalBox {
spacing: 10px; spacing: 10px;
Text { Text {

View File

@@ -1,7 +1,6 @@
import { Palette, VerticalBox , StandardButton, Button, HorizontalBox, ComboBox, Switch, Slider} from "std-widgets.slint"; import { Palette, VerticalBox , StandardButton, Button, HorizontalBox, ComboBox, Switch, Slider} from "std-widgets.slint";
export component RogItem inherits Rectangle { export component RogItem inherits Rectangle {
// background: Palette.control-background;
border-color: Palette.border; border-color: Palette.border;
border-width: 1px; border-width: 1px;
border-radius: 2px; border-radius: 2px;
@@ -291,11 +290,7 @@ export component PopupNotification {
border-width: 2px; border-width: 2px;
border-color: Palette.accent-background; border-color: Palette.accent-background;
background: Palette.background; background: Palette.background;
// TODO: drop shadows slow
// drop-shadow-offset-x: 7px;
// drop-shadow-offset-y: 7px;
// drop-shadow-color: black;
// drop-shadow-blur: 30px;
VerticalLayout { VerticalLayout {
Dialog { Dialog {
VerticalLayout { VerticalLayout {

View File

@@ -4,8 +4,6 @@
import { Palette, HorizontalBox, VerticalBox } from "std-widgets.slint"; import { Palette, HorizontalBox, VerticalBox } from "std-widgets.slint";
component SideBarItem inherits Rectangle { component SideBarItem inherits Rectangle {
// padding only has effect on layout elements
// padding: 10px;
in property <bool> selected; in property <bool> selected;
in property <bool> has-focus; in property <bool> has-focus;
in-out property <string> text <=> label.text; in-out property <string> text <=> label.text;