ui: switched fonts to FiraSans
This commit is contained in:
@@ -173,12 +173,12 @@ std::string GraphViewStyle::getFontNameForNodeType(Node::NodeType type)
|
||||
|
||||
std::string GraphViewStyle::getFontNameOfAccessNode()
|
||||
{
|
||||
return "Myriad Pro";
|
||||
return "Fira Sans";
|
||||
}
|
||||
|
||||
std::string GraphViewStyle::getFontNameOfExpandToggleNode()
|
||||
{
|
||||
return "Myriad Pro";
|
||||
return "Fira Sans";
|
||||
}
|
||||
|
||||
GraphViewStyle::NodeMargins GraphViewStyle::getMarginsForNodeType(Node::NodeType type, bool hasChildren)
|
||||
@@ -262,13 +262,13 @@ GraphViewStyle::NodeMargins GraphViewStyle::getMarginsOfAccessNode(TokenComponen
|
||||
margins.minWidth = 56;
|
||||
break;
|
||||
case TokenComponentAccess::ACCESS_PROTECTED:
|
||||
margins.minWidth = 80;
|
||||
margins.minWidth = 72;
|
||||
break;
|
||||
case TokenComponentAccess::ACCESS_PRIVATE:
|
||||
margins.minWidth = 64;
|
||||
margins.minWidth = 58;
|
||||
break;
|
||||
case TokenComponentAccess::ACCESS_TEMPLATE:
|
||||
margins.minWidth = 110;
|
||||
margins.minWidth = 103;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ void QtGraphNodeAccess::updateStyle()
|
||||
|
||||
if (m_accessIcon)
|
||||
{
|
||||
m_text->setPos(style.textOffset.x + m_accessIconSize + 3, style.textOffset.y + m_accessIconSize + 2 - style.fontSize);
|
||||
m_text->setPos(style.textOffset.x + m_accessIconSize + 3, style.textOffset.y + m_accessIconSize - style.fontSize);
|
||||
m_accessIcon->setPos(style.textOffset.x, style.textOffset.y);
|
||||
|
||||
m_accessIcon->setPixmap(utility::colorizePixmap(m_accessIcon->pixmap(), style.color.icon.c_str()));
|
||||
|
||||
@@ -120,7 +120,7 @@ QtMainWindow::QtMainWindow()
|
||||
app->installEventFilter(new MouseReleaseFilter(this));
|
||||
app->installEventFilter(new MouseWheelFilter(this));
|
||||
|
||||
app->setStyleSheet(utility::getStyleSheet(ResourcePaths::getGuiPath() + "tooltip.css").c_str());
|
||||
app->setStyleSheet(utility::getStyleSheet(ResourcePaths::getGuiPath() + "main.css").c_str());
|
||||
|
||||
m_recentProjectAction = new QAction*[ApplicationSettings::MaximalAmountOfRecentProjects];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user