Add initial token theming.

This commit is contained in:
jmsgrogan 2023-01-17 13:01:59 +00:00
parent 3d37a7244b
commit 1f85954e98
34 changed files with 406 additions and 253 deletions

View file

@ -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);