Small code style issues

Contributes to issue CURA-5035.
This commit is contained in:
Ghostkeeper 2018-05-02 10:27:35 +02:00
parent 1d11fe0506
commit 3934f6f1b3
No known key found for this signature in database
GPG key ID: B47E36CF62F1D06E
2 changed files with 4 additions and 4 deletions

View file

@ -75,7 +75,7 @@ Item
{
if (model.author_email)
{
return "<a href=\"mailto:"+model.author_email+"?Subject=Cura: "+model.name+"\">"+model.author_name+"</a>"
return "<a href=\"mailto:" + model.author_email + "?Subject=Cura: " + model.name + "\">" + model.author_name + "</a>"
}
else
{
@ -87,7 +87,7 @@ Item
wrapMode: Text.WordWrap
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
onLinkActivated: Qt.openUrlExternally("mailto:"+model.author_email+"?Subject=Cura: "+model.name+" Plugin")
onLinkActivated: Qt.openUrlExternally("mailto:" + model.author_email + "?Subject=Cura: " + model.name + " Plugin")
color: model.enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("lining")
}
}

View file

@ -30,11 +30,11 @@ Button
text: control.text
color:
{
if( control.hovered )
if(control.hovered)
{
return UM.Theme.getColor("topbar_button_text_hovered");
}
if( control.active )
if(control.active)
{
return UM.Theme.getColor("topbar_button_text_active");
}