Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'resources/themes')
-rwxr-xr-xresources/themes/cura-light/styles.qml81
-rw-r--r--resources/themes/cura-light/theme.json19
2 files changed, 74 insertions, 26 deletions
diff --git a/resources/themes/cura-light/styles.qml b/resources/themes/cura-light/styles.qml
index 6f099bf1c5..723b393efa 100755
--- a/resources/themes/cura-light/styles.qml
+++ b/resources/themes/cura-light/styles.qml
@@ -175,11 +175,68 @@ QtObject
{
ButtonStyle
{
- background: Item
+ background: Rectangle
{
- implicitWidth: Theme.getSize("button").width;
- implicitHeight: Theme.getSize("button").height;
+ implicitWidth: Theme.getSize("button").width
+ implicitHeight: Theme.getSize("button").height
+ color:
+ {
+ if (control.checked && control.hovered)
+ {
+ return Theme.getColor("toolbar_button_active_hover")
+ }
+ else if (control.checked)
+ {
+ return Theme.getColor("toolbar_button_active")
+ }
+ else if(control.hovered)
+ {
+ return Theme.getColor("toolbar_button_hover")
+ }
+ return Theme.getColor("toolbar_background")
+ }
+ radius: UM.Theme.getSize("default_radius").width
+
+ Rectangle
+ {
+ id: topSquare
+ anchors
+ {
+ left: parent.left
+ right: parent.right
+ top: parent.top
+ }
+ height: parent.radius
+ color: control.isFirstElement ? "transparent" : parent.color
+ }
+
+ Rectangle
+ {
+ id: bottomSquare
+ anchors
+ {
+ left: parent.left
+ right: parent.right
+ bottom: parent.bottom
+ }
+ height: parent.radius
+ color: control.isLastElement ? "transparent" : parent.color
+ }
+
+ Rectangle
+ {
+ id: leftSquare
+ anchors
+ {
+ left: parent.left
+ top: parent.top
+ bottom: parent.bottom
+ }
+ width: parent.radius
+ color: parent.color
+ }
+ // This is the tooltip
UM.PointingRectangle
{
id: button_tooltip
@@ -223,22 +280,7 @@ QtObject
source: control.iconSource;
width: Theme.getSize("button_icon").width;
height: Theme.getSize("button_icon").height;
- color:
- {
- if (control.checked && control.hovered)
- {
- return Theme.getColor("toolbar_button_text_active_hover");
- }
- else if (control.checked)
- {
- return Theme.getColor("toolbar_button_text_active");
- }
- else if(control.hovered)
- {
- return Theme.getColor("toolbar_button_text_hover");
- }
- return Theme.getColor("toolbar_button_text");
- }
+ color: Theme.getColor("toolbar_button_text");
sourceSize: Theme.getSize("button_icon")
}
@@ -515,6 +557,7 @@ QtObject
implicitWidth: Theme.getSize("message").width - (Theme.getSize("default_margin").width * 2)
implicitHeight: Theme.getSize("progressbar").height
color: control.hasOwnProperty("backgroundColor") ? control.backgroundColor : Theme.getColor("progressbar_background")
+ radius: Theme.getSize("progressbar_radius").width
}
progress: Rectangle
{
diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json
index 8b3e606094..57007827a8 100644
--- a/resources/themes/cura-light/theme.json
+++ b/resources/themes/cura-light/theme.json
@@ -64,6 +64,12 @@
"size": 1.15,
"weight": 50,
"family": "Noto Sans"
+ },
+ "extruder_icon":
+ {
+ "size": 0.7,
+ "weight": 50,
+ "family": "Noto Sans"
}
},
@@ -124,9 +130,9 @@
"warning": [255, 190, 35, 255],
"toolbar_button_text": [10, 8, 80, 255],
- "toolbar_button_text_hover": [50, 130, 255, 255],
- "toolbar_button_text_active": [50, 130, 255, 255],
- "toolbar_button_text_active_hover": [50, 130, 255, 255],
+ "toolbar_button_hover": [232, 242, 252, 255],
+ "toolbar_button_active": [232, 242, 252, 255],
+ "toolbar_button_active_hover": [232, 242, 252, 255],
"button": [31, 36, 39, 255],
"button_hover": [68, 72, 75, 255],
@@ -388,7 +394,7 @@
"machine_selector_widget": [16.0, 4.5],
- "views_selector": [0.0, 4.0],
+ "views_selector": [16.0, 4.5],
"default_radius": [0.25, 0.25],
@@ -405,8 +411,7 @@
"thin_margin": [0.71, 0.71],
"narrow_margin": [0.5, 0.5],
- "extruder_button_material_margin": [0.70, 0.9],
- "extruder_button_material": [0.75, 0.75],
+ "extruder_icon": [1.8, 1.8],
"simple_mode_infill_caption": [0.0, 5.0],
"simple_mode_infill_height": [0.0, 8.0],
@@ -451,7 +456,7 @@
"progressbar": [26.0, 0.75],
"progressbar_radius": [0.15, 0.15],
- "progressbar_control": [8.0, 0.4],
+ "progressbar_control": [8.0, 0.75],
"scrollbar": [0.75, 0.5],