Fix up build.
This commit is contained in:
parent
f26ee2ebc4
commit
b5f21900eb
16 changed files with 16 additions and 30 deletions
|
@ -8,7 +8,6 @@ AudioEditorView::AudioEditorView()
|
|||
{
|
||||
auto label = Label::Create();
|
||||
label->setLabel("audio Editor");
|
||||
label->setBackground(ThemeToken::SystemToken::Primary);
|
||||
label->setMargin(1);
|
||||
addWidget(std::move(label));
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ CanvasCommandSelectorView::CanvasCommandSelectorView()
|
|||
onCommandSelected(CanvasDrawCommand::CIRCLE);
|
||||
};
|
||||
circle_button->setLabel("Circle");
|
||||
circle_button->setBackground(ThemeToken::SystemToken::Primary);
|
||||
circle_button->setMargin(2);
|
||||
circle_button->setOnClickFunction(on_circle_click);
|
||||
|
||||
|
@ -24,7 +23,6 @@ CanvasCommandSelectorView::CanvasCommandSelectorView()
|
|||
};
|
||||
auto line_button = Button::Create();
|
||||
line_button->setLabel("Line");
|
||||
line_button->setBackground(ThemeToken::SystemToken::Primary);
|
||||
line_button->setMargin(2);
|
||||
line_button->setOnClickFunction(on_line_click);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ void CanvasDrawingArea::addShapeAt(unsigned x, unsigned y)
|
|||
{
|
||||
if (mActiveDrawingCommand == CanvasDrawCommand::CIRCLE)
|
||||
{
|
||||
auto circle = std::make_unique<CircleNode>(DiscretePoint(x, y), 5);
|
||||
auto circle = std::make_unique<CircleNode>(Transform(DiscretePoint(x, y)), 5);
|
||||
circle->setFillColor(Color(255, 0, 0));
|
||||
circle->setName("CanvasDrawingArea_CircleNode");
|
||||
|
||||
|
|
|
@ -36,11 +36,9 @@ void CanvasView::initialize()
|
|||
{
|
||||
auto label = Label::Create();
|
||||
label->setLabel("Canvas");
|
||||
label->setBackground(ThemeToken::SystemToken::Secondary);
|
||||
label->setMargin(1);
|
||||
|
||||
auto controls = std::make_unique<CanvasCommandSelectorView>();
|
||||
controls->setBackground(ThemeToken::SystemToken::Background);
|
||||
controls->setMargin(1);
|
||||
|
||||
auto on_draw_command_changed = [this](CanvasDrawCommand command){
|
||||
|
@ -49,7 +47,6 @@ void CanvasView::initialize()
|
|||
controls->setCommandSelectedCallback(on_draw_command_changed);
|
||||
|
||||
auto drawing_area = std::make_unique<CanvasDrawingArea>();
|
||||
drawing_area->setBackground(ThemeToken::SystemToken::Background);
|
||||
drawing_area->setMargin(1);
|
||||
mDrawingArea = drawing_area.get();
|
||||
|
||||
|
@ -77,17 +74,14 @@ std::unique_ptr<Widget> CanvasView::initializeCacheButtons()
|
|||
{
|
||||
auto saveButton = Button::Create();
|
||||
saveButton->setLabel("Save");
|
||||
saveButton->setBackground(ThemeToken::SystemToken::Primary);
|
||||
saveButton->setMargin(2);
|
||||
|
||||
auto clearButton = Button::Create();
|
||||
clearButton->setLabel("Clear");
|
||||
clearButton->setBackground(ThemeToken::SystemToken::Primary);
|
||||
clearButton->setMargin(2);
|
||||
|
||||
auto loadButton = Button::Create();
|
||||
loadButton->setLabel("Load");
|
||||
loadButton->setBackground(ThemeToken::SystemToken::Primary);
|
||||
loadButton->setMargin(2);
|
||||
|
||||
auto buttonSpacer = VerticalSpacer::Create();
|
||||
|
|
|
@ -12,7 +12,6 @@ ImageEditorView::ImageEditorView()
|
|||
{
|
||||
auto label = Label::Create();
|
||||
label->setLabel("Image Editor");
|
||||
label->setBackground(ThemeToken::SystemToken::Primary);
|
||||
label->setMargin(1);
|
||||
|
||||
auto image_widget = std::make_unique<ImageViewWidget>();
|
||||
|
|
|
@ -20,7 +20,7 @@ void ImageViewWidget::doPaint(const PaintEvent* event)
|
|||
|
||||
if (!mGridNode)
|
||||
{
|
||||
mGridNode = std::make_unique<GridNode>(mLocation);
|
||||
mGridNode = std::make_unique<GridNode>(Transform(mLocation));
|
||||
mGridNode->setName(mName + "_GridNode");
|
||||
mGridNode->setNumX(mNumX);
|
||||
mGridNode->setNumY(mNumY);
|
||||
|
@ -35,7 +35,6 @@ void ImageViewWidget::doPaint(const PaintEvent* event)
|
|||
|
||||
if (mTransformDirty)
|
||||
{
|
||||
mGridNode->setLocation(mLocation);
|
||||
mGridNode->setWidth(mSize.mWidth);
|
||||
mGridNode->setHeight(mSize.mHeight);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@ MeshViewerView::~MeshViewerView()
|
|||
MeshViewerView::MeshViewerView()
|
||||
{
|
||||
mName = "MeshViewerView";
|
||||
mBackground = ThemeToken::SystemToken::Background;
|
||||
}
|
||||
|
||||
void MeshViewerView::doPaint(const PaintEvent* event)
|
||||
|
@ -35,7 +34,7 @@ void MeshViewerView::doPaint(const PaintEvent* event)
|
|||
|
||||
if (!mMeshNode)
|
||||
{
|
||||
mMeshNode = std::make_unique<MeshNode>(mLocation);
|
||||
mMeshNode = std::make_unique<MeshNode>(Transform(mLocation));
|
||||
mMeshNode->setName(mName + "_MeshNode");
|
||||
|
||||
mMeshNode->setWidth(mSize.mWidth);
|
||||
|
@ -48,7 +47,6 @@ void MeshViewerView::doPaint(const PaintEvent* event)
|
|||
|
||||
if (mTransformDirty)
|
||||
{
|
||||
mMeshNode->setLocation(mLocation);
|
||||
mMeshNode->setWidth(mSize.mWidth);
|
||||
mMeshNode->setHeight(mSize.mHeight);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ void TextEditorView::initialize()
|
|||
{
|
||||
auto label = Label::Create();
|
||||
label->setLabel("Text Editor");
|
||||
label->setBackground(ThemeToken::SystemToken::Secondary);
|
||||
label->setMargin(1);
|
||||
|
||||
auto textBox = TextBox::Create();
|
||||
|
@ -34,7 +33,7 @@ void TextEditorView::initialize()
|
|||
|
||||
auto saveButton = Button::Create();
|
||||
saveButton->setLabel("Save");
|
||||
saveButton->setBackground(ThemeToken::SystemToken::Primary);
|
||||
saveButton->setBackground(Theme::Sys::Color::Primary);
|
||||
saveButton->setMargin(2);
|
||||
auto onSave = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
|
@ -47,7 +46,6 @@ void TextEditorView::initialize()
|
|||
|
||||
auto clearButton = Button::Create();
|
||||
clearButton->setLabel("Clear");
|
||||
clearButton->setBackground(ThemeToken::SystemToken::Primary);
|
||||
clearButton->setMargin(2);
|
||||
auto onClear = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
|
@ -60,7 +58,6 @@ void TextEditorView::initialize()
|
|||
|
||||
auto loadButton = Button::Create();
|
||||
loadButton->setLabel("Load");
|
||||
loadButton->setBackground(ThemeToken::SystemToken::Primary);
|
||||
loadButton->setMargin(2);
|
||||
auto onLoad = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
|
|
|
@ -10,7 +10,6 @@ WebClientView::WebClientView()
|
|||
{
|
||||
auto label = Label::Create();
|
||||
label->setLabel("Web Client");
|
||||
label->setBackground(ThemeToken::SystemToken::Secondary);
|
||||
label->setMargin(1);
|
||||
addWidget(std::move(label));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue