@@ -35,7 +35,8 @@ public partial class MainWindow : Adw.ApplicationWindow
35
35
[ Gtk . Connect ] private readonly Adw . Bin _dashboardBin ;
36
36
[ Gtk . Connect ] private readonly Adw . ToastOverlay _toastOverlay ;
37
37
[ Gtk . Connect ] private readonly Adw . ViewStack _viewStack ;
38
- [ Gtk . Connect ] private readonly Adw . ButtonContent _greeting ;
38
+ [ Gtk . Connect ] private readonly Gtk . Image _greetingIcon ;
39
+ [ Gtk . Connect ] private readonly Gtk . Label _greetingLabel ;
39
40
[ Gtk . Connect ] private readonly Adw . PreferencesGroup _startPageRecentAccountsGroup ;
40
41
[ Gtk . Connect ] private readonly Gtk . Button _newAccountButton ;
41
42
[ Gtk . Connect ] private readonly Gtk . Button _openAccountButton ;
@@ -87,16 +88,8 @@ private MainWindow(Gtk.Builder builder, MainWindowController controller, Adw.App
87
88
_windowTitle . SetTitle ( _controller . AppInfo . ShortName ) ;
88
89
_graphToggleButton . SetActive ( _controller . ShowGraphs ) ;
89
90
//Greeting
90
- _greeting . SetIconName ( _controller . ShowSun ? "sun-outline-symbolic" : "moon-outline-symbolic" ) ;
91
- _greeting . SetLabel ( _controller . Greeting ) ;
92
- var image = ( Gtk . Image ) _greeting . GetFirstChild ( ) ;
93
- image . SetPixelSize ( 48 ) ;
94
- image . SetMarginEnd ( 6 ) ;
95
- var label = ( Gtk . Label ) _greeting . GetLastChild ( ) ;
96
- label . AddCssClass ( "greeting-title" ) ;
97
- _greeting . SetHalign ( Gtk . Align . Center ) ;
98
- _greeting . SetMarginTop ( 24 ) ;
99
- _greeting . SetMarginBottom ( 14 ) ;
91
+ _greetingIcon . SetFromIconName ( _controller . ShowSun ? "sun-outline-symbolic" : "moon-outline-symbolic" ) ;
92
+ _greetingLabel . SetLabel ( _controller . Greeting ) ;
100
93
//Page Tabs
101
94
_tabView . OnClosePage += OnCloseAccountPage ;
102
95
//New Account Action
0 commit comments