diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-01 02:00:08 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-01 02:00:08 -0500 |
commit | 14317bb513846a57034ecd21187a81fd2e861e85 (patch) | |
tree | 761fbc7db2849ffd4ad6adb7d3765414c8e88fab /src/windows | |
parent | 9a25fd0d687ab14fd01a5e6d6a274eff979ba064 (diff) | |
download | abaddon-portaudio-14317bb513846a57034ecd21187a81fd2e861e85.tar.gz abaddon-portaudio-14317bb513846a57034ecd21187a81fd2e861e85.zip |
tweak voice settings window ui
Diffstat (limited to 'src/windows')
-rw-r--r-- | src/windows/voicesettingswindow.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/windows/voicesettingswindow.cpp b/src/windows/voicesettingswindow.cpp index 97f77b5..1a112f5 100644 --- a/src/windows/voicesettingswindow.cpp +++ b/src/windows/voicesettingswindow.cpp @@ -12,6 +12,7 @@ VoiceSettingsWindow::VoiceSettingsWindow() : m_main(Gtk::ORIENTATION_VERTICAL) { get_style_context()->add_class("app-window"); + get_style_context()->add_class("voice-settings-window"); set_default_size(300, 300); m_encoding_mode.append("Voice"); @@ -115,10 +116,21 @@ VoiceSettingsWindow::VoiceSettingsWindow() m_signal_gain.emit(m_gain.get_value() / 100.0); }); - m_main.add(m_encoding_mode); - m_main.add(m_signal); - m_main.add(m_bitrate); - m_main.add(m_gain); + auto *layout = Gtk::make_managed<Gtk::HBox>(); + auto *labels = Gtk::make_managed<Gtk::VBox>(); + auto *widgets = Gtk::make_managed<Gtk::VBox>(); + layout->pack_start(*labels, false, true, 5); + layout->pack_start(*widgets); + labels->pack_start(*Gtk::make_managed<Gtk::Label>("Coding Mode", Gtk::ALIGN_END)); + labels->pack_start(*Gtk::make_managed<Gtk::Label>("Signal Hint", Gtk::ALIGN_END)); + labels->pack_start(*Gtk::make_managed<Gtk::Label>("Bitrate", Gtk::ALIGN_END)); + labels->pack_start(*Gtk::make_managed<Gtk::Label>("Gain", Gtk::ALIGN_END)); + widgets->pack_start(m_encoding_mode); + widgets->pack_start(m_signal); + widgets->pack_start(m_bitrate); + widgets->pack_start(m_gain); + + m_main.add(*layout); add(m_main); show_all_children(); |