File tree Expand file tree Collapse file tree 5 files changed +35
-26
lines changed Expand file tree Collapse file tree 5 files changed +35
-26
lines changed Original file line number Diff line number Diff line change 4040 </screenshots >
4141
4242 <launchable type =" desktop-id" >io.github.xchan14.larawan.desktop</launchable >
43+
44+
45+ <releases >
46+ <release version =" 1.0.0" date =" 2024-02-23" >
47+ <description >
48+ <ul >
49+ <li >Initial Release</li >
50+ </ul >
51+ </description >
52+ </release >
53+ </releases >
54+
4355</component >
Original file line number Diff line number Diff line change @@ -16,11 +16,16 @@ public class Larawan.App : Gtk.Application {
1616 );
1717 }
1818
19+ public static int main (string [] args ) {
20+ Granite . init ();
21+ var app = new Larawan .App ();
22+ return app. run (args);
23+ }
24+
1925 protected override void activate () {
2026 // Call the parent class's activate method
2127 base . activate ();
2228
23- Granite . init ();
2429 apply_granite_theme ();
2530
2631 // Create a new window
@@ -30,11 +35,6 @@ public class Larawan.App : Gtk.Application {
3035 main_window. present ();
3136 }
3237
33- public static int main (string [] args ) {
34- var app = new Larawan .App ();
35- return app. run (args);
36- }
37-
3838 private void apply_granite_theme () {
3939 // First we get the default instances for Granite.Settings and Gtk.Settings
4040 var granite_settings = Granite . Settings . get_default ();
Original file line number Diff line number Diff line change @@ -74,13 +74,17 @@ public class Larawan.Views.MainWindow : Adw.ApplicationWindow {
7474 child = scrolled_window,
7575 };
7676
77- settings_button = new Button .with_label (" ⚙️ " ) {
77+ settings_button = new Button .from_icon_name (" open-menu " ) {
7878 halign = Align . END ,
7979 valign = Align . END ,
80- can_focus = false
80+ can_focus = false ,
81+ tooltip_text = " Settings" ,
82+ vexpand = true ,
83+ hexpand = true
8184 };
8285 settings_button. add_css_class (" settings-button" );
8386 settings_button. clicked. connect (on_settings_button_clicked);
87+ ((Image ) settings_button. child). pixel_size = 32 ;
8488
8589 var overlay = new Overlay () {
8690 child = window_handle,
Original file line number Diff line number Diff line change @@ -167,15 +167,21 @@ public class Larawan.Views.SettingsDialog : Granite.Dialog {
167167 width_request = 150
168168 };
169169
170+ var label_text = new Label (" Auto start <b>Larawan</b> by adding it " ) {
171+ use_markup = true
172+ };
170173 startup_linkbutton = new LinkButton .with_label (
171174 " settings://applications/startup" ,
172- " Auto start 'Larawan' by adding it here."
175+ " here."
173176 );
177+ var value_box = new Box (Orientation . HORIZONTAL , 0 );
178+ value_box. append (label_text);
179+ value_box. append (startup_linkbutton);
174180
175181 var box = new Box (Orientation . HORIZONTAL , 10 );
176182 box. add_css_class (" form-field" );
177183 box. append (label);
178- box. append (startup_linkbutton );
184+ box. append (value_box );
179185 root_box. append (box);
180186 }
181187
@@ -226,9 +232,9 @@ public class Larawan.Views.SettingsDialog : Granite.Dialog {
226232 width_request = 150
227233 };
228234
229- var always_visible_label = new Label (
230- " Right click app > Click 'Always on Top' "
231- ) ;
235+ var always_visible_label = new Label (" Right click app > Click <b>Always on Top</b> " ) {
236+ use_markup = true
237+ } ;
232238
233239 var box = new Box (Orientation . HORIZONTAL , 10 );
234240 box. add_css_class (" form-field" );
Original file line number Diff line number Diff line change @@ -30,21 +30,8 @@ namespace Larawan.Widgets {
3030 }
3131 }
3232
33- public string label {
34- get {
35- return button. label;
36- }
37- set {
38- button. label = value ;
39- }
40- }
41-
4233 public string icon_name { get ; construct set ; }
4334
44- public EntryButton . with_label (string label) {
45- Object (label: label);
46- }
47-
4835 public EntryButton . from_icon_name (string icon_name) {
4936 Object (icon_name: icon_name);
5037 }
You can’t perform that action at this time.
0 commit comments