UI: improve outbound row
All checks were successful
PostmarketOS Build / Prepare (push) Successful in 21s
PostmarketOS Build / Build for aarch64 (push) Successful in 43s
PostmarketOS Build / Build for x86_64 (push) Successful in 13s

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-22 13:56:34 +03:00
parent 657ddc0e68
commit a42da682b5
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582
3 changed files with 26 additions and 2 deletions

View file

@ -1,12 +1,17 @@
using Gtk 4.0;
using Adw 1;
template $SingularityUiOutboundRow: Gtk.Box {
styles [
"outbound-row",
]
spacing: 6;
Label schema {
styles [
"schema",
]
label: "vless";
}

View file

@ -2,3 +2,18 @@
border-radius: 5px;
padding: 10px;
}
.outbound-list {
background: none;
}
.outbound-list > row {
border-radius: 10px;
}
.outbound-list > row:selected {
background-color: alpha(var(--view-fg-color), 0.2);
}
.outbound-row > .schema {
background-color: alpha(var(--green-1), 0.4);
border-radius: 3px;
padding: 2px;
font-size: 13pt;
}

View file

@ -20,12 +20,16 @@ template $SingularityWindow: Adw.ApplicationWindow {
content: Adw.Clamp {
ScrolledWindow {
hscrollbar-policy: never;
ListView outbounds {
margin-end: 12;
margin-start: 12;
halign: fill;
valign: start;
styles [
"card",
"outbound-list",
]
}
}