Skip to content

Commit 4778920

Browse files
committed
ui: style fixes
1 parent 2ec7cbc commit 4778920

File tree

5 files changed

+22
-11
lines changed

5 files changed

+22
-11
lines changed

qml/InputSection.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ GroupBox {
6161

6262
Button {
6363
text: "Apply"
64-
Layout.preferredWidth: Math.min(80, window.width * 0.1)
64+
Layout.preferredWidth: 80
6565
onClicked: Engine.createInputDevice(parseInt(inputPortField.text))
6666

6767
background: Rectangle {

qml/Main.qml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ApplicationWindow {
1313
height: 600
1414
title: "OSC Spatialization Router"
1515
color: "#1e1e1e"
16+
font: style.fontSans
1617
property alias skin: style
1718

1819
Settings {
@@ -53,10 +54,12 @@ ApplicationWindow {
5354
}
5455

5556
menuBar: TopMenu {
57+
5658
}
5759

5860
SplitView {
59-
Layout.margins: 10
61+
// Layout.margins: 10
62+
// padding: 5
6063
anchors.fill: parent
6164
orientation: Qt.Vertical
6265

qml/OutputSection.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ GroupBox {
9090
currentIndex: 0
9191

9292
background: Rectangle {
93-
y: 3
93+
y: 1
9494
color: "#3a3a3a"
9595
border.color: parent.focus ? "#5a5a5a" : "#4a4a4a"
9696
radius: 2

qml/Style.qml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ import QtQml
22
import QtQuick
33

44
QtObject {
5+
readonly property real fontRatio: Qt.platform.os === "osx" ? 96. / 72. : 1.
56
// Font sizes - responsive with maximum caps
67
// Large: Section titles (bold)
7-
readonly property real fontLarge: 10
8+
readonly property real fontLarge: 12 * fontRatio
89
// Medium: Regular text, labels, buttons, inputs
9-
readonly property real fontMedium: 8
10+
readonly property real fontMedium: 10 * fontRatio
1011
// Small: Secondary text, small buttons, checkbox labels
11-
readonly property real fontSmall: 8
12+
readonly property real fontSmall: 10 * fontRatio
1213

1314
// Font families
14-
readonly property string fontMonospace: "Consolas, Monaco, monospace"
15+
readonly property string fontSans: "DM Sans"
16+
readonly property string fontMonospace: "IBM Plex Mono"
1517
}

qml/TopMenu.qml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@ import QtQuick.Controls
66
import Score.UI as UI
77
import "./Engine.js" as Engine
88

9+
ColumnLayout {
10+
Item {
11+
height: 2
12+
width: 1
13+
}
914
RowLayout {
1015
property Style style
1116
spacing: 10
1217

1318
Label {
14-
text: "Quick Setup:"
19+
text: " Quick Setup:"
1520
color: "#ffffff"
1621
verticalAlignment: Text.AlignVCenter
1722
font.pointSize: skin.fontMedium
1823
}
1924

2025
Button {
21-
Layout.preferredWidth: Math.max(80, Math.min(120, window.width * 0.12))
26+
Layout.preferredWidth: 80
2227
text: "SpatGRIS"
2328
onClicked: Engine.createOutputDevice("SpatGRIS_1", "127.0.0.1", 18042, "SpatGRIS")
2429

@@ -38,7 +43,7 @@ RowLayout {
3843
}
3944

4045
Button {
41-
Layout.preferredWidth: Math.max(80, Math.min(120, window.width * 0.12))
46+
Layout.preferredWidth: 80
4247
text: "ADM-OSC"
4348
onClicked: Engine.createOutputDevice("ADM_1", "127.0.0.1", 9000, "ADM-OSC")
4449

@@ -58,7 +63,7 @@ RowLayout {
5863
}
5964

6065
Button {
61-
Layout.preferredWidth: Math.max(80, Math.min(120, window.width * 0.12))
66+
Layout.preferredWidth: 80
6267
text: "SPAT Rev"
6368
onClicked: Engine.createOutputDevice("SPAT_1", "127.0.0.1", 8088, "SPAT Revolution")
6469

@@ -127,3 +132,4 @@ RowLayout {
127132
}
128133
}
129134
}
135+
}

0 commit comments

Comments
 (0)