commit
b04f6a73b9
3 changed files with 13 additions and 13 deletions
|
|
@ -194,11 +194,11 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
||||||
target_compile_definitions(sfizz-vstgui PRIVATE "DEVELOPMENT")
|
target_compile_definitions(sfizz-vstgui PUBLIC "DEVELOPMENT")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_BUILD_TYPE} MATCHES "Release")
|
if(${CMAKE_BUILD_TYPE} MATCHES "Release")
|
||||||
target_compile_definitions(sfizz-vstgui PRIVATE "RELEASE")
|
target_compile_definitions(sfizz-vstgui PUBLIC "RELEASE")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
|
|
|
||||||
|
|
@ -423,7 +423,7 @@ void Editor::Impl::createFrameContents()
|
||||||
box->setBackgroundColor(theme->boxBackground);
|
box->setBackgroundColor(theme->boxBackground);
|
||||||
box->setTitleFontColor(theme->titleBoxText);
|
box->setTitleFontColor(theme->titleBoxText);
|
||||||
box->setTitleBackgroundColor(theme->titleBoxBackground);
|
box->setTitleBackgroundColor(theme->titleBoxBackground);
|
||||||
auto font = owned(new CFontDesc("Roboto", fontsize));
|
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||||
box->setTitleFont(font);
|
box->setTitleFont(font);
|
||||||
return box;
|
return box;
|
||||||
};
|
};
|
||||||
|
|
@ -436,7 +436,7 @@ void Editor::Impl::createFrameContents()
|
||||||
lbl->setBackColor(CColor(0x00, 0x00, 0x00, 0x00));
|
lbl->setBackColor(CColor(0x00, 0x00, 0x00, 0x00));
|
||||||
lbl->setFontColor(theme->text);
|
lbl->setFontColor(theme->text);
|
||||||
lbl->setHoriAlign(align);
|
lbl->setHoriAlign(align);
|
||||||
auto font = owned(new CFontDesc("Roboto", fontsize));
|
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||||
lbl->setFont(font);
|
lbl->setFont(font);
|
||||||
return lbl;
|
return lbl;
|
||||||
};
|
};
|
||||||
|
|
@ -463,7 +463,7 @@ void Editor::Impl::createFrameContents()
|
||||||
lbl->setBackColor(CColor(0x00, 0x00, 0x00, 0x00));
|
lbl->setBackColor(CColor(0x00, 0x00, 0x00, 0x00));
|
||||||
lbl->setFontColor(theme->text);
|
lbl->setFontColor(theme->text);
|
||||||
lbl->setHoriAlign(align);
|
lbl->setHoriAlign(align);
|
||||||
auto font = owned(new CFontDesc("Roboto", fontsize));
|
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||||
lbl->setFont(font);
|
lbl->setFont(font);
|
||||||
return lbl;
|
return lbl;
|
||||||
};
|
};
|
||||||
|
|
@ -476,7 +476,7 @@ void Editor::Impl::createFrameContents()
|
||||||
#if 0
|
#if 0
|
||||||
auto createButton = [this](const CRect& bounds, int tag, const char* label, CHoriTxtAlign align, int fontsize) {
|
auto createButton = [this](const CRect& bounds, int tag, const char* label, CHoriTxtAlign align, int fontsize) {
|
||||||
CTextButton* button = new CTextButton(bounds, this, tag, label);
|
CTextButton* button = new CTextButton(bounds, this, tag, label);
|
||||||
auto font = owned(new CFontDesc("Roboto", fontsize));
|
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||||
button->setFont(font);
|
button->setFont(font);
|
||||||
button->setTextAlignment(align);
|
button->setTextAlignment(align);
|
||||||
return button;
|
return button;
|
||||||
|
|
@ -484,7 +484,7 @@ void Editor::Impl::createFrameContents()
|
||||||
#endif
|
#endif
|
||||||
auto createClickableLabel = [this, &theme](const CRect& bounds, int tag, const char* label, CHoriTxtAlign align, int fontsize) {
|
auto createClickableLabel = [this, &theme](const CRect& bounds, int tag, const char* label, CHoriTxtAlign align, int fontsize) {
|
||||||
STextButton* button = new STextButton(bounds, this, tag, label);
|
STextButton* button = new STextButton(bounds, this, tag, label);
|
||||||
auto font = owned(new CFontDesc("Roboto", fontsize));
|
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||||
button->setFont(font);
|
button->setFont(font);
|
||||||
button->setTextAlignment(align);
|
button->setTextAlignment(align);
|
||||||
button->setTextColor(theme->text);
|
button->setTextColor(theme->text);
|
||||||
|
|
@ -499,7 +499,7 @@ void Editor::Impl::createFrameContents()
|
||||||
};
|
};
|
||||||
auto createValueButton = [this, &theme](const CRect& bounds, int tag, const char* label, CHoriTxtAlign align, int fontsize) {
|
auto createValueButton = [this, &theme](const CRect& bounds, int tag, const char* label, CHoriTxtAlign align, int fontsize) {
|
||||||
STextButton* button = new STextButton(bounds, this, tag, label);
|
STextButton* button = new STextButton(bounds, this, tag, label);
|
||||||
auto font = owned(new CFontDesc("Roboto", fontsize));
|
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||||
button->setFont(font);
|
button->setFont(font);
|
||||||
button->setTextAlignment(align);
|
button->setTextAlignment(align);
|
||||||
button->setTextColor(theme->valueText);
|
button->setTextColor(theme->valueText);
|
||||||
|
|
@ -515,7 +515,7 @@ void Editor::Impl::createFrameContents()
|
||||||
auto createValueMenu = [this, &theme](const CRect& bounds, int tag, const char*, CHoriTxtAlign align, int fontsize) {
|
auto createValueMenu = [this, &theme](const CRect& bounds, int tag, const char*, CHoriTxtAlign align, int fontsize) {
|
||||||
SValueMenu* vm = new SValueMenu(bounds, this, tag);
|
SValueMenu* vm = new SValueMenu(bounds, this, tag);
|
||||||
vm->setHoriAlign(align);
|
vm->setHoriAlign(align);
|
||||||
auto font = owned(new CFontDesc("Roboto", fontsize));
|
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||||
vm->setFont(font);
|
vm->setFont(font);
|
||||||
vm->setFontColor(theme->valueText);
|
vm->setFontColor(theme->valueText);
|
||||||
vm->setBackColor(theme->valueBackground);
|
vm->setBackColor(theme->valueBackground);
|
||||||
|
|
@ -526,7 +526,7 @@ void Editor::Impl::createFrameContents()
|
||||||
};
|
};
|
||||||
auto createGlyphButton = [this, &theme](UTF8StringPtr glyph, const CRect& bounds, int tag, int fontsize) {
|
auto createGlyphButton = [this, &theme](UTF8StringPtr glyph, const CRect& bounds, int tag, int fontsize) {
|
||||||
STextButton* btn = new STextButton(bounds, this, tag, glyph);
|
STextButton* btn = new STextButton(bounds, this, tag, glyph);
|
||||||
btn->setFont(new CFontDesc("Sfizz Fluent System R20", fontsize));
|
btn->setFont(makeOwned<CFontDesc>("Sfizz Fluent System R20", fontsize));
|
||||||
btn->setTextColor(theme->icon);
|
btn->setTextColor(theme->icon);
|
||||||
btn->setHoverColor(theme->iconHighlight);
|
btn->setHoverColor(theme->iconHighlight);
|
||||||
btn->setFrameColor(CColor(0x00, 0x00, 0x00, 0x00));
|
btn->setFrameColor(CColor(0x00, 0x00, 0x00, 0x00));
|
||||||
|
|
@ -559,14 +559,14 @@ void Editor::Impl::createFrameContents()
|
||||||
};
|
};
|
||||||
auto createPiano = [](const CRect& bounds, int, const char*, CHoriTxtAlign, int fontsize) {
|
auto createPiano = [](const CRect& bounds, int, const char*, CHoriTxtAlign, int fontsize) {
|
||||||
SPiano* piano = new SPiano(bounds);
|
SPiano* piano = new SPiano(bounds);
|
||||||
auto font = owned(new CFontDesc("Roboto", fontsize));
|
auto font = makeOwned<CFontDesc>("Roboto", fontsize);
|
||||||
piano->setFont(font);
|
piano->setFont(font);
|
||||||
return piano;
|
return piano;
|
||||||
};
|
};
|
||||||
auto createChevronDropDown = [this, &theme](const CRect& bounds, int, const char*, CHoriTxtAlign, int fontsize) {
|
auto createChevronDropDown = [this, &theme](const CRect& bounds, int, const char*, CHoriTxtAlign, int fontsize) {
|
||||||
SActionMenu* menu = new SActionMenu(bounds, this);
|
SActionMenu* menu = new SActionMenu(bounds, this);
|
||||||
menu->setTitle(u8"\ue0d7");
|
menu->setTitle(u8"\ue0d7");
|
||||||
menu->setFont(new CFontDesc("Sfizz Fluent System R20", fontsize));
|
menu->setFont(makeOwned<CFontDesc>("Sfizz Fluent System R20", fontsize));
|
||||||
menu->setFontColor(theme->icon);
|
menu->setFontColor(theme->icon);
|
||||||
menu->setHoverColor(theme->iconHighlight);
|
menu->setHoverColor(theme->iconHighlight);
|
||||||
menu->setFrameColor(CColor(0x00, 0x00, 0x00, 0x00));
|
menu->setFrameColor(CColor(0x00, 0x00, 0x00, 0x00));
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ void SPiano::draw(CDrawContext* dc)
|
||||||
CRect textRect(
|
CRect textRect(
|
||||||
rect.left, dim.labelBounds.top,
|
rect.left, dim.labelBounds.top,
|
||||||
rect.right, dim.labelBounds.bottom);
|
rect.right, dim.labelBounds.bottom);
|
||||||
dc->setFont(font_);
|
dc->setFont(font);
|
||||||
dc->setFontColor(labelStroke_);
|
dc->setFontColor(labelStroke_);
|
||||||
std::string text = std::to_string(static_cast<int>(o) - 1);
|
std::string text = std::to_string(static_cast<int>(o) - 1);
|
||||||
dc->drawString(text.c_str(), textRect, kCenterText);
|
dc->drawString(text.c_str(), textRect, kCenterText);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue