Skip to content

Commit

Permalink
style(ui): format blueprint files
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Jan 11, 2025
1 parent 0fd5369 commit d749f2d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
2 changes: 1 addition & 1 deletion data/resources/ui/color-format-row.blp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Gtk 4.0;

template $ColorFormatRow : Box {
template $ColorFormatRow: Box {
margin-top: 12;
margin-start: 12;
margin-end: 12;
Expand Down
6 changes: 4 additions & 2 deletions data/resources/ui/history-item.blp
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ menu popover_menu {
}
}

template $HistoryItem : Button {
template $HistoryItem: Button {
margin-start: 2;
margin-end: 2;
margin-top: 2;
margin-bottom: 2;
tooltip-text: bind $tooltip(template.color) as <string>;
action-name: "history.clicked";

styles ["shadow"]
styles [
"shadow"
]

child: Gtk.Box {
Gtk.GestureClick right_click_gesture {
Expand Down
31 changes: 17 additions & 14 deletions data/resources/ui/preferences.blp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ using Adw 1;

Adw.NavigationPage name_source_page {
title: _("Name Sources");

child: Adw.ToolbarView {
[top]
Adw.HeaderBar {}

content: Box {
orientation: vertical;

Expand Down Expand Up @@ -36,8 +38,7 @@ Adw.NavigationPage name_source_page {
};
}


template $PreferencesWindow : Adw.PreferencesDialog {
template $PreferencesWindow: Adw.PreferencesDialog {
Adw.PreferencesPage {
icon-name: "applications-system-symbolic";
title: _("General");
Expand All @@ -48,6 +49,7 @@ template $PreferencesWindow : Adw.PreferencesDialog {
Adw.ComboRow alpha_pos_box {
title: _("Alpha-Value-Position");
subtitle: _("Where the Alphavalue is positioned in the Hexstring");

model: StringList {
strings [
C_("Alphavalue is not shown", "None"),
Expand All @@ -69,19 +71,20 @@ template $PreferencesWindow : Adw.PreferencesDialog {
}
}

Adw.SpinRow precision_row {
Adw.SpinRow precision_row {
title: _("Precision");
adjustment: Adjustment {
value: 2;
lower: 0;
upper: 15;
step-increment: 1;
};

tooltip-text: _("Precision");
climb-rate: 1;
numeric: true;
valign: center;

adjustment: Adjustment {
value: 2;
lower: 0;
upper: 15;
step-increment: 1;
};

tooltip-text: _("Precision");
climb-rate: 1;
numeric: true;
valign: center;
}
}

Expand Down
3 changes: 3 additions & 0 deletions data/resources/ui/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ template $AppWindow: Adw.ApplicationWindow {

StackPage {
name: "placeholder";

child: $PlaceholderPage placeholder {};
}

StackPage {
name: "portal-error";

child: Adw.Bin {
css-name: "statuspage";

Expand Down Expand Up @@ -130,6 +132,7 @@ template $AppWindow: Adw.ApplicationWindow {

StackPage {
name: "main";

child: Box {
orientation: horizontal;

Expand Down

0 comments on commit d749f2d

Please sign in to comment.