Create padding within the content view

This commit is contained in:
Savanni D'Gerinel 2023-08-24 22:33:36 -04:00
parent 16c8dcb682
commit 562d4871a1
3 changed files with 10 additions and 5 deletions

View File

@ -1 +1,3 @@
@define_color accent_color: @purple_5;
.content {
padding: 8px;
}

View File

@ -131,7 +131,10 @@ impl Home {
players.append(&white_player);
*s.imp().white_player.borrow_mut() = Some(white_player.clone());
let new_game_button = gtk::Button::builder().label(&view.start_game.label).build();
let new_game_button = gtk::Button::builder()
.css_classes(vec!["suggested-action"])
.label(&view.start_game.label)
.build();
s.append(&new_game_button);
let library = Library::new();

View File

@ -56,8 +56,8 @@ impl AppWindow {
let provider = gtk::CssProvider::new();
provider.load_from_data(&stylesheet);
let content = window.style_context();
content.add_provider(&provider, STYLE_PROVIDER_PRIORITY_USER);
let context = window.style_context();
context.add_provider(&provider, STYLE_PROVIDER_PRIORITY_USER);
let header = adw::HeaderBar::builder()
.title_widget(&gtk::Label::new(Some("Kifu")))
@ -74,7 +74,7 @@ impl AppWindow {
header.pack_end(&hamburger);
let content = adw::Bin::new();
let content = adw::Bin::builder().css_classes(vec!["content"]).build();
content.set_child(Some(
&adw::StatusPage::builder().title("Nothing here").build(),
));