mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Small code style issues
Contributes to issue CURA-5035.
This commit is contained in:
parent
1d11fe0506
commit
3934f6f1b3
2 changed files with 4 additions and 4 deletions
|
|
@ -75,7 +75,7 @@ Item
|
||||||
{
|
{
|
||||||
if (model.author_email)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -87,7 +87,7 @@ Item
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
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")
|
color: model.enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("lining")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,11 @@ Button
|
||||||
text: control.text
|
text: control.text
|
||||||
color:
|
color:
|
||||||
{
|
{
|
||||||
if( control.hovered )
|
if(control.hovered)
|
||||||
{
|
{
|
||||||
return UM.Theme.getColor("topbar_button_text_hovered");
|
return UM.Theme.getColor("topbar_button_text_hovered");
|
||||||
}
|
}
|
||||||
if( control.active )
|
if(control.active)
|
||||||
{
|
{
|
||||||
return UM.Theme.getColor("topbar_button_text_active");
|
return UM.Theme.getColor("topbar_button_text_active");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue