fix styling issues
This commit is contained in:
@@ -21,7 +21,6 @@ ControlCenter::ControlCenter(Icon::Type icon, std::string name)
|
||||
|
||||
this->tabRow.set_orientation(Gtk::Orientation::HORIZONTAL);
|
||||
this->tabRow.set_spacing(4);
|
||||
this->tabRow.set_margin_bottom(4);
|
||||
this->tabRow.add_css_class("control-center-tab-row");
|
||||
|
||||
this->mediaTabButton = std::make_unique<TabButton>(Icon::PLAY_CIRCLE);
|
||||
@@ -78,12 +77,15 @@ void ControlCenter::setActiveTab(const std::string &tab_name) {
|
||||
this->mediaTabButton->setActive(false);
|
||||
this->infoTabButton->setActive(false);
|
||||
this->timerButton->setActive(false);
|
||||
|
||||
this->settingsTabButton->setActive(false);
|
||||
|
||||
if (tab_name == "controls") {
|
||||
this->mediaTabButton->setActive(true);
|
||||
} else if (tab_name == "info") {
|
||||
this->infoTabButton->setActive(true);
|
||||
} else if (tab_name == "timer") {
|
||||
this->timerButton->setActive(true);
|
||||
} else if (tab_name == "settings") {
|
||||
this->settingsTabButton->setActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user