Add initial token theming.
This commit is contained in:
parent
3d37a7244b
commit
1f85954e98
34 changed files with 406 additions and 253 deletions
|
@ -1,18 +1,18 @@
|
|||
#include "TopBar.h"
|
||||
|
||||
#include "Color.h"
|
||||
#include "Theme.h"
|
||||
#include "ITheme.h"
|
||||
|
||||
#include "Button.h"
|
||||
#include "TopBarMenu.h"
|
||||
|
||||
TopBar::TopBar()
|
||||
{
|
||||
setBackgroundColor(Theme::getBackgroundPrimary());
|
||||
setBackground(ThemeToken::SystemToken::Secondary);
|
||||
|
||||
auto fileButton = Button::Create();
|
||||
fileButton->setLabel("File");
|
||||
fileButton->setBackgroundColor(Theme::getBackgroundPrimary());
|
||||
fileButton->setBackground(ThemeToken::SystemToken::Primary);
|
||||
fileButton->setMargin(2);
|
||||
fileButton->setMaxWidth(60);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue