Merge branch 'rebuild' of github.com:Ly-sec/Noctalia into rebuild

This commit is contained in:
quadbyte 2025-08-11 10:44:22 -04:00
commit 2d4d009f11
11 changed files with 32 additions and 4 deletions

View file

@ -19,8 +19,7 @@ NLoader {
readonly property real scaling: Scaling.scale(screen) readonly property real scaling: Scaling.scale(screen)
// Active tab index unified for sidebar, header, and content stack // Active tab index unified for sidebar, header, and content stack
property int currentTabIndex: 0 property int currentTabIndex: 0
// Single source of truth for tabs // Single source of truth for tabs (explicit icon/label here)
// Each tab points to a QML file path. The content stack simply loads the file via Loader.source.
property var tabsModel: [ property var tabsModel: [
{ icon: "tune", label: "General", source: "Tabs/General.qml" }, { icon: "tune", label: "General", source: "Tabs/General.qml" },
{ icon: "web_asset", label: "Bar", source: "Tabs/Bar.qml" }, { icon: "web_asset", label: "Bar", source: "Tabs/Bar.qml" },

View file

@ -5,6 +5,9 @@ import qs.Widgets
Item { Item {
property real scaling: 1 property real scaling: 1
readonly property string tabIcon: "info"
readonly property string tabLabel: "About"
readonly property int tabIndex: 8
anchors.fill: parent anchors.fill: parent
ColumnLayout { ColumnLayout {

View file

@ -6,6 +6,10 @@ import qs.Widgets
Item { Item {
// Optional scaling prop to match other tabs // Optional scaling prop to match other tabs
property real scaling: 1 property real scaling: 1
// Tab metadata
readonly property string tabIcon: "web_asset"
readonly property string tabLabel: "Bar"
readonly property int tabIndex: 1
anchors.fill: parent anchors.fill: parent
ColumnLayout { ColumnLayout {

View file

@ -5,6 +5,9 @@ import qs.Widgets
Item { Item {
property real scaling: 1 property real scaling: 1
readonly property string tabIcon: "monitor"
readonly property string tabLabel: "Display"
readonly property int tabIndex: 5
anchors.fill: parent anchors.fill: parent
ColumnLayout { ColumnLayout {

View file

@ -9,6 +9,10 @@ Item {
// Public API // Public API
// Scaling factor provided by the parent settings window // Scaling factor provided by the parent settings window
property real scaling: 1 property real scaling: 1
// Tab metadata
readonly property string tabIcon: "tune"
readonly property string tabLabel: "General"
readonly property int tabIndex: 0
anchors.fill: parent anchors.fill: parent
implicitWidth: parent ? parent.width : 0 implicitWidth: parent ? parent.width : 0

View file

@ -5,6 +5,9 @@ import qs.Widgets
Item { Item {
property real scaling: 1 property real scaling: 1
readonly property string tabIcon: "more_horiz"
readonly property string tabLabel: "Misc"
readonly property int tabIndex: 7
anchors.fill: parent anchors.fill: parent
ColumnLayout { ColumnLayout {

View file

@ -5,6 +5,9 @@ import qs.Widgets
Item { Item {
property real scaling: 1 property real scaling: 1
readonly property string tabIcon: "wifi"
readonly property string tabLabel: "Network"
readonly property int tabIndex: 4
anchors.fill: parent anchors.fill: parent
ColumnLayout { ColumnLayout {

View file

@ -5,6 +5,9 @@ import qs.Widgets
Item { Item {
property real scaling: 1 property real scaling: 1
readonly property string tabIcon: "videocam"
readonly property string tabLabel: "Screen Recorder"
readonly property int tabIndex: 3
anchors.fill: parent anchors.fill: parent
ColumnLayout { ColumnLayout {

View file

@ -5,6 +5,9 @@ import qs.Widgets
Item { Item {
property real scaling: 1 property real scaling: 1
readonly property string tabIcon: "schedule"
readonly property string tabLabel: "Time & Weather"
readonly property int tabIndex: 2
anchors.fill: parent anchors.fill: parent
ColumnLayout { ColumnLayout {

View file

@ -5,6 +5,9 @@ import qs.Widgets
Item { Item {
property real scaling: 1 property real scaling: 1
readonly property string tabIcon: "image"
readonly property string tabLabel: "Wallpaper"
readonly property int tabIndex: 6
anchors.fill: parent anchors.fill: parent
ColumnLayout { ColumnLayout {

View file

@ -14,7 +14,6 @@ Item {
property bool readOnly: false property bool readOnly: false
property bool enabled: true property bool enabled: true
property var onEditingFinished: function () {} property var onEditingFinished: function () {}
property var onTextChanged: function (value) {}
// Sizing // Sizing
implicitHeight: Style.baseWidgetSize * 1.25 * scaling implicitHeight: Style.baseWidgetSize * 1.25 * scaling
@ -58,7 +57,8 @@ Item {
background: null background: null
font.pointSize: Colors.fontSizeSmall * scaling font.pointSize: Colors.fontSizeSmall * scaling
onEditingFinished: root.onEditingFinished() onEditingFinished: root.onEditingFinished()
onTextChanged: root.onTextChanged(text) // Text changes are observable via the aliased 'text' property (root.text) and its 'textChanged' signal.
// No additional callback is invoked here to avoid conflicts with QML's onTextChanged handler semantics.
} }
} }
} }