diff --git a/Cargo.toml b/Cargo.toml index 3e207658..f3fb9d4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,6 @@ git = "https://github.com/gtk-rs/gtk4-rs" # We need to use the same version as libadwaita does #rev = "abea0c9980bc083494eceb30dfab5eeb99a73118" -[dependencies.libadwaita] +[dependencies.adw] package = "libadwaita" git = "https://gitlab.gnome.org/bilelmoussaoui/libadwaita-rs.git" diff --git a/data/resources.gresource.xml b/data/resources.gresource.xml new file mode 100644 index 00000000..025bbe47 --- /dev/null +++ b/data/resources.gresource.xml @@ -0,0 +1,14 @@ + + + + resources/ui/shortcuts.ui + resources/ui/content.ui + resources/ui/login.ui + resources/ui/session.ui + resources/ui/sidebar.ui + resources/ui/window.ui + + resources/style.css + resources/icons/scalable/actions/send-symbolic.svg + + diff --git a/data/resources/icons/scalable/actions/send-symbolic.svg b/data/resources/icons/scalable/actions/send-symbolic.svg new file mode 100644 index 00000000..01f60ca8 --- /dev/null +++ b/data/resources/icons/scalable/actions/send-symbolic.svg @@ -0,0 +1,52 @@ + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + diff --git a/data/resources/style.css b/data/resources/style.css index 3c4bd471..c3d88b6e 100644 --- a/data/resources/style.css +++ b/data/resources/style.css @@ -1,4 +1,16 @@ -.title-header{ +.title-header { font-size: 36px; font-weight: bold; } + +.content { + background-color: @theme_base_color; +} + +.content:backdrop { + background-color: @theme_unfocused_base_color; +} + +.send-message-area { + margin: 6px; +} diff --git a/data/resources/ui/content.ui b/data/resources/ui/content.ui new file mode 100644 index 00000000..411aa691 --- /dev/null +++ b/data/resources/ui/content.ui @@ -0,0 +1,88 @@ + + + + diff --git a/data/resources/ui/login.ui b/data/resources/ui/login.ui new file mode 100644 index 00000000..94347e78 --- /dev/null +++ b/data/resources/ui/login.ui @@ -0,0 +1,18 @@ + + + + diff --git a/data/resources/ui/session.ui b/data/resources/ui/session.ui new file mode 100644 index 00000000..0f0c5968 --- /dev/null +++ b/data/resources/ui/session.ui @@ -0,0 +1,19 @@ + + + + diff --git a/data/resources/ui/sidebar.ui b/data/resources/ui/sidebar.ui new file mode 100644 index 00000000..4e315197 --- /dev/null +++ b/data/resources/ui/sidebar.ui @@ -0,0 +1,56 @@ + + + +
+ + _Preferences + app.preferences + + + _Keyboard Shortcuts + win.show-help-overlay + + + _About Fractal + app.about + +
+
+ +
diff --git a/data/resources/ui/window.ui b/data/resources/ui/window.ui index c89a8a35..95c2b884 100644 --- a/data/resources/ui/window.ui +++ b/data/resources/ui/window.ui @@ -1,39 +1,19 @@ + - -
- - _Preferences - app.preferences - - - _Keyboard Shortcuts - win.show-help-overlay - - - _About GTK Rust Template - app.about - -
-
-