summaryrefslogtreecommitdiff
path: root/src/windows/voicesettingswindow.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-12-26 07:14:43 +0000
committerGitHub <noreply@github.com>2023-12-26 07:14:43 +0000
commitffc29b82142d992bb3c1fa012a3e93d57ff2a219 (patch)
tree6e3329b7761243672f694fc680ee3b25f0cddbe4 /src/windows/voicesettingswindow.cpp
parent705938a0a8a02ece99bc6040c615ccf8ea5afa71 (diff)
parent6c89abb3c35c9a45c33d13bb0e3f5d4677cdb676 (diff)
downloadabaddon-portaudio-ffc29b82142d992bb3c1fa012a3e93d57ff2a219.tar.gz
abaddon-portaudio-ffc29b82142d992bb3c1fa012a3e93d57ff2a219.zip
Merge pull request #252 from uowuo/theming
Use GTK themes
Diffstat (limited to 'src/windows/voicesettingswindow.cpp')
-rw-r--r--src/windows/voicesettingswindow.cpp20
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();