some refactore
This commit is contained in:
13
src/components/button/tabButton.cpp
Normal file
13
src/components/button/tabButton.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "components/button/tabButton.hpp"
|
||||
|
||||
TabButton::TabButton(Icon::Type icon) : IconButton(icon) {
|
||||
add_css_class("tab-icon");
|
||||
}
|
||||
|
||||
void TabButton::setActive(bool active) {
|
||||
if (active) {
|
||||
this->add_css_class("active-button");
|
||||
} else {
|
||||
this->remove_css_class("active-button");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user