mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-17 14:53:44 +01:00
improve playtwitch UI
This commit is contained in:
parent
4a2e85c62f
commit
3339459715
1 changed files with 10 additions and 6 deletions
|
@ -36,12 +36,16 @@ fn build_ui(
|
|||
let vbox = gtk4::Box::new(gtk4::Orientation::Vertical, 5);
|
||||
win.set_child(Some(&vbox));
|
||||
|
||||
let hbox = gtk4::Box::new(gtk4::Orientation::Horizontal, 5);
|
||||
vbox.append(&hbox);
|
||||
hbox.append(>k4::Label::new(Some("Quality")));
|
||||
let quality_box = gtk4::Box::new(gtk4::Orientation::Horizontal, 5);
|
||||
let chatty_box = gtk4::Box::new(gtk4::Orientation::Horizontal, 5);
|
||||
let titlebar = gtk4::HeaderBar::new();
|
||||
titlebar.pack_start(&quality_box);
|
||||
titlebar.pack_end(&chatty_box);
|
||||
win.set_titlebar(Some(&titlebar));
|
||||
quality_box.append(>k4::Label::new(Some("Quality")));
|
||||
|
||||
let quality_entry = gtk4::Entry::new();
|
||||
hbox.append(&quality_entry);
|
||||
quality_box.append(&quality_entry);
|
||||
quality_entry.set_hexpand(true);
|
||||
quality_entry.set_text(&init.quality);
|
||||
|
||||
|
@ -49,8 +53,8 @@ fn build_ui(
|
|||
.state(init.chatty)
|
||||
.tooltip_text("Start Chatty with the given channel")
|
||||
.build();
|
||||
hbox.append(&chatty_switch);
|
||||
hbox.append(>k4::Label::new(Some("Start Chatty")));
|
||||
chatty_box.append(&chatty_switch);
|
||||
chatty_box.append(>k4::Label::new(Some("Start Chatty")));
|
||||
|
||||
let other_channel = gtk4::Entry::builder()
|
||||
.placeholder_text("Other Channel...")
|
||||
|
|
Loading…
Reference in a new issue