mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Add tertiary button as a reusable component
CURA-7418
This commit is contained in:
parent
d33529f932
commit
200e3d6ee7
2 changed files with 31 additions and 0 deletions
21
resources/qml/TertiaryButton.qml
Normal file
21
resources/qml/TertiaryButton.qml
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright (c) 2020 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
|
||||
import UM 1.4 as UM
|
||||
import Cura 1.1 as Cura
|
||||
|
||||
|
||||
Cura.ActionButton
|
||||
{
|
||||
shadowEnabled: true
|
||||
shadowColor: enabled ? UM.Theme.getColor("secondary_button_shadow"): UM.Theme.getColor("action_button_disabled_shadow")
|
||||
color: "transparent"
|
||||
textColor: UM.Theme.getColor("secondary_button_text")
|
||||
outlineColor: "transparent"
|
||||
disabledColor: UM.Theme.getColor("action_button_disabled")
|
||||
textDisabledColor: UM.Theme.getColor("action_button_disabled_text")
|
||||
hoverColor: "transparent"
|
||||
underlineTextOnHover: true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue