13 lines
311 B
C++
13 lines
311 B
C++
#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");
|
|
}
|
|
} |