mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Simplify the viewOrientation controls
This commit is contained in:
parent
a825daea95
commit
a3b45ff203
2 changed files with 23 additions and 17 deletions
16
resources/qml/ViewOrientationButton.qml
Normal file
16
resources/qml/ViewOrientationButton.qml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
|
||||
import UM 1.4 as UM
|
||||
|
||||
UM.SimpleButton
|
||||
{
|
||||
width: UM.Theme.getSize("small_button").width
|
||||
height: UM.Theme.getSize("small_button").height
|
||||
hoverBackgroundColor: UM.Theme.getColor("small_button_hover")
|
||||
hoverColor: UM.Theme.getColor("small_button_text_hover")
|
||||
color: UM.Theme.getColor("small_button_text")
|
||||
iconMargin: 0.5 * UM.Theme.getSize("wide_lining").width
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue