Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Commit b0a82d7

Browse files
committed
Fix social media buttons
Previously, as window resizes the buttons also streches. Now it is (relatively) fixed in position
1 parent 6acdb35 commit b0a82d7

2 files changed

Lines changed: 66 additions & 61 deletions

File tree

ui/main.slint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export component MainWindow inherits Window {
2020
//min-height: 500px;
2121
HorizontalBox {
2222
spacing: 0px;
23+
2324
// It is not ready, disabled
2425
//SideBar { }
2526

ui/pages/liveiso.slint

Lines changed: 65 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Images } from "../components/images.slint";
77
import { Callbacks} from "../components/callbacks.slint";
88

99
export component LiveISO {
10+
1011
VerticalBox {
1112
spacing: 30px;
1213
padding-right: 30px;
@@ -33,105 +34,108 @@ export component LiveISO {
3334
horizontal-alignment: center;
3435
}
3536

36-
GridBox {
37-
padding-top: 30px;
38-
padding-bottom: 30px;
39-
spacing-vertical: 30px;
37+
HorizontalBox {
38+
alignment: center;
39+
spacing: 30px;
4040
Rectangle {
41-
width: 100px;
42-
col: 0;
43-
row: 0;
41+
background: blue;
42+
border-color: red;
4443
}
4544

46-
TouchArea {
47-
col: 1;
48-
row: 0;
45+
GridBox {
46+
width: 300px;
47+
spacing-vertical: 25px;
48+
spacing-horizontal: 15px;
4949
Image {
50+
col: 0;
51+
row: 0;
5052
source: Images.web;
5153
colorize: Palette.foreground;
5254
height: 32px;
55+
preferred-width: 32px;
5356
vertical-alignment: top;
57+
TouchArea {
58+
clicked => {
59+
Callbacks.openUrl("https://getsol.us");
60+
}
61+
}
5462
}
5563

56-
clicked => {
57-
Callbacks.openUrl("https://getsol.us");
64+
Text {
65+
text: "Website";
66+
horizontal-alignment: center;
67+
col: 0;
68+
row: 1;
5869
}
59-
}
6070

61-
Text {
62-
text: "Website";
63-
horizontal-alignment: center;
64-
col: 1;
65-
row: 1;
66-
}
67-
68-
TouchArea {
69-
col: 2;
70-
row: 0;
7171
Image {
72+
col: 1;
73+
row: 0;
7274
source: Images.github;
7375
colorize: Palette.foreground;
7476
height: 32px;
77+
preferred-width: 32px;
78+
TouchArea {
79+
clicked => {
80+
Callbacks.openUrl("https://dev.getsol.us");
81+
}
82+
}
7583
}
7684

77-
clicked => {
78-
Callbacks.openUrl("https://dev.getsol.us");
85+
Text {
86+
text: "Github";
87+
horizontal-alignment: center;
88+
col: 1;
89+
row: 1;
7990
}
80-
}
8191

82-
Text {
83-
text: "Github";
84-
horizontal-alignment: center;
85-
row: 1;
86-
col: 2;
87-
}
88-
89-
TouchArea {
90-
col: 3;
91-
row: 0;
9292
Image {
93+
col: 2;
94+
row: 0;
9395
source: Images.mastodon;
9496
colorize: Palette.foreground;
9597
height: 32px;
96-
}
98+
preferred-width: 32px;
99+
TouchArea {
97100

98-
clicked => {
99-
Callbacks.openUrl("https://floss.social/@getsolus");
101+
clicked => {
102+
Callbacks.openUrl("https://floss.social/@getsolus");
103+
}
104+
}
100105
}
101-
}
102106

103-
Text {
104-
text: "Mastodon";
105-
horizontal-alignment: center;
106-
row: 1;
107-
col: 3;
108-
}
107+
Text {
108+
text: "Mastodon";
109+
horizontal-alignment: center;
110+
col: 2;
111+
row: 1;
112+
}
109113

110-
TouchArea {
111-
col: 4;
112-
row: 0;
113114
Image {
115+
col: 3;
116+
row: 0;
114117
source: Images.docs;
115118
colorize: Palette.foreground;
116119
height: 32px;
120+
preferred-width: 32px;
121+
TouchArea {
122+
clicked => {
123+
Callbacks.openUrl("https://help.getsol.us");
124+
}
125+
}
117126
}
118127

119-
clicked => {
120-
Callbacks.openUrl("https://help.getsol.us");
128+
Text {
129+
text: "Help Guide";
130+
horizontal-alignment: center;
131+
col: 3;
132+
row: 1;
121133
}
122134
}
123135

124-
Text {
125-
text: "Help Guide";
126-
horizontal-alignment: center;
127-
row: 1;
128-
col: 4;
129-
}
130-
131136
Rectangle {
132-
width: 100px;
133-
col: 5;
134-
row: 0;
137+
background: blue;
138+
border-color: red;
135139
}
136140
}
137141

0 commit comments

Comments
 (0)