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:
authorGhostkeeper <rubend@tutanota.com>2022-05-10 17:04:06 +0300
committerGhostkeeper <rubend@tutanota.com>2022-05-10 17:04:06 +0300
commitfb8f50e6ef5c0c5693900bb2e5d7a06aea596f92 (patch)
treef307cbbab66e1de8fc410e73e401067210d57db8 /resources
parent5c7423e007ffebddb43eda840cab8411a355f981 (diff)
parent97e2d6a4322d59b0bf7eacc7bec9621ce8cdc934 (diff)
Merge branch '5.0'
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/MachineSettings/NumericTextFieldWithUnit.qml14
-rw-r--r--resources/qml/Preferences/GeneralPage.qml2
-rw-r--r--resources/qml/Preferences/ProfilesPage.qml2
-rw-r--r--resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml1
-rw-r--r--resources/qml/Settings/SettingExtruder.qml16
-rw-r--r--resources/qml/Settings/SettingOptionalExtruder.qml16
-rw-r--r--resources/qml/Settings/SettingTextField.qml14
-rw-r--r--resources/qml/Widgets/ComboBox.qml14
-rw-r--r--resources/qml/Widgets/TextField.qml14
-rw-r--r--resources/themes/cura-light/theme.json3
10 files changed, 66 insertions, 30 deletions
diff --git a/resources/qml/MachineSettings/NumericTextFieldWithUnit.qml b/resources/qml/MachineSettings/NumericTextFieldWithUnit.qml
index 2950714d6a..79114b15c6 100644
--- a/resources/qml/MachineSettings/NumericTextFieldWithUnit.qml
+++ b/resources/qml/MachineSettings/NumericTextFieldWithUnit.qml
@@ -91,12 +91,12 @@ UM.TooltipArea
{
anchors.fill: parent
- borderColor: (textFieldWithUnit.hovered || textFieldWithUnit.activeFocus) ? UM.Theme.getColor("text_field_border_hovered") : "transparent"
+ borderColor: textFieldWithUnit.activeFocus ? UM.Theme.getColor("text_field_border_active") : "transparent"
liningColor:
{
if (!textFieldWithUnit.enabled)
{
- return UM.Theme.getColor("setting_control_disabled_border")
+ return UM.Theme.getColor("setting_control_disabled_border");
}
switch (propertyProvider.properties.validationState)
{
@@ -109,11 +109,15 @@ UM.TooltipArea
return UM.Theme.getColor("setting_validation_warning")
}
// Validation is OK.
- if (textFieldWithUnit.hovered || textFieldWithUnit.activeFocus)
+ if(textFieldWithUnit.activeFocus)
{
- return UM.Theme.getColor("text_field_border_hovered")
+ return UM.Theme.getColor("text_field_border_active");
}
- return UM.Theme.getColor("border_field_light")
+ if(textFieldWithUnit.hovered)
+ {
+ return UM.Theme.getColor("text_field_border_hovered");
+ }
+ return UM.Theme.getColor("border_field_light");
}
color:
diff --git a/resources/qml/Preferences/GeneralPage.qml b/resources/qml/Preferences/GeneralPage.qml
index ca8019ea75..2934edf508 100644
--- a/resources/qml/Preferences/GeneralPage.qml
+++ b/resources/qml/Preferences/GeneralPage.qml
@@ -201,7 +201,6 @@ UM.PreferencesPage
append({ text: "Русский", code: "ru_RU" })
append({ text: "Türkçe", code: "tr_TR" })
append({ text: "简体中文", code: "zh_CN" })
- append({ text: "正體字", code: "zh_TW" })
var date_object = new Date();
if (date_object.getUTCMonth() == 8 && date_object.getUTCDate() == 19) //Only add Pirate on the 19th of September.
@@ -211,6 +210,7 @@ UM.PreferencesPage
// incomplete and/or abandoned
append({ text: catalog.i18nc("@heading", "-- incomplete --"), code: "" })
+ append({ text: "正體字", code: "zh_TW" })
append({ text: "Magyar", code: "hu_HU" })
append({ text: "Suomi", code: "fi_FI" })
append({ text: "Polski", code: "pl_PL" })
diff --git a/resources/qml/Preferences/ProfilesPage.qml b/resources/qml/Preferences/ProfilesPage.qml
index 9b062a0347..b7030f242b 100644
--- a/resources/qml/Preferences/ProfilesPage.qml
+++ b/resources/qml/Preferences/ProfilesPage.qml
@@ -59,7 +59,7 @@ UM.ManagementPage
scrollviewCaption: catalog.i18nc("@label", "Profiles compatible with active printer:") + "<br><b>" + Cura.MachineManager.activeMachine.name + "</b>"
hamburgerButtonVisible: hasCurrentItem
- onHamburgeButtonClicked: {
+ onHamburgeButtonClicked: (hamburger_button) => {
const hamburerButtonHeight = hamburger_button.height;
menu.popup(hamburger_button, -menu.width + hamburger_button.width / 2, hamburger_button.height);
diff --git a/resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml b/resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml
index fa2659c672..05ee28714b 100644
--- a/resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml
+++ b/resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml
@@ -129,7 +129,6 @@ Item
background: UM.UnderlineBackground
{
id: backgroundItem
- borderColor: intentSelection.hovered ? UM.Theme.getColor("text_field_border_hovered") : "transparent"
liningColor: intentSelection.hovered ? UM.Theme.getColor("text_field_border_hovered") : UM.Theme.getColor("border_field_light")
}
diff --git a/resources/qml/Settings/SettingExtruder.qml b/resources/qml/Settings/SettingExtruder.qml
index d0bffe0f37..567161b8f6 100644
--- a/resources/qml/Settings/SettingExtruder.qml
+++ b/resources/qml/Settings/SettingExtruder.qml
@@ -125,18 +125,22 @@ SettingItem
}
return UM.Theme.getColor("setting_control")
}
- borderColor: (base.hovered || control.activeFocus) ? UM.Theme.getSize("text_field_border_hovered") : "transparent"
+ borderColor: control.activeFocus ? UM.Theme.getSize("text_field_border_active") : "transparent"
liningColor:
{
- if (!enabled)
+ if(!enabled)
+ {
+ return UM.Theme.getColor("setting_control_disabled_border");
+ }
+ if(control.activeFocus)
{
- return UM.Theme.getColor("setting_control_disabled_border")
+ return UM.Theme.getColor("text_field_border_active");
}
- if (base.hovered || control.activeFocus)
+ if(base.hovered)
{
- return UM.Theme.getColor("text_field_border_hovered")
+ return UM.Theme.getColor("text_field_border_hovered");
}
- return UM.Theme.getColor("border_field_light")
+ return UM.Theme.getColor("border_field_light");
}
}
diff --git a/resources/qml/Settings/SettingOptionalExtruder.qml b/resources/qml/Settings/SettingOptionalExtruder.qml
index 8c57bc8651..22f03d44a2 100644
--- a/resources/qml/Settings/SettingOptionalExtruder.qml
+++ b/resources/qml/Settings/SettingOptionalExtruder.qml
@@ -126,18 +126,22 @@ SettingItem
}
return UM.Theme.getColor("setting_control")
}
- borderColor: (base.hovered || control.activeFocus) ? UM.Theme.getColor("text_field_border_hovered") : "transparent"
+ borderColor: control.activeFocus ? UM.Theme.getColor("text_field_border_active") : "transparent"
liningColor:
{
- if (!enabled)
+ if(!enabled)
+ {
+ return UM.Theme.getColor("setting_control_disabled_border");
+ }
+ if(control.activeFocus)
{
- return UM.Theme.getColor("setting_control_disabled_border")
+ return UM.Theme.getColor("text_field_border_active");
}
- if (base.hovered || control.activeFocus)
+ if(base.hovered)
{
- return UM.Theme.getColor("text_field_border_hovered")
+ return UM.Theme.getColor("text_field_border_hovered");
}
- return UM.Theme.getColor("border_field_light")
+ return UM.Theme.getColor("border_field_light");
}
}
diff --git a/resources/qml/Settings/SettingTextField.qml b/resources/qml/Settings/SettingTextField.qml
index 8ec37f98d2..f0e3b2cacb 100644
--- a/resources/qml/Settings/SettingTextField.qml
+++ b/resources/qml/Settings/SettingTextField.qml
@@ -32,12 +32,12 @@ SettingItem
anchors.fill: parent
- borderColor: (hovered || input.activeFocus) ? UM.Theme.getColor("text_field_border_hovered") : "transparent"
+ borderColor: input.activeFocus ? UM.Theme.getColor("text_field_border_active") : "transparent"
liningColor:
{
if(!enabled)
{
- return UM.Theme.getColor("text_field_border_disabled")
+ return UM.Theme.getColor("text_field_border_disabled");
}
switch(propertyProvider.properties.validationState)
{
@@ -51,11 +51,15 @@ SettingItem
return UM.Theme.getColor("setting_validation_warning");
}
//Validation is OK.
- if(hovered || input.activeFocus)
+ if(input.activeFocus)
{
- return UM.Theme.getColor("text_field_border_hovered")
+ return UM.Theme.getColor("text_field_border_active");
}
- return UM.Theme.getColor("text_field_border")
+ if(hovered)
+ {
+ return UM.Theme.getColor("text_field_border_hovered");
+ }
+ return UM.Theme.getColor("text_field_border");
}
color: {
diff --git a/resources/qml/Widgets/ComboBox.qml b/resources/qml/Widgets/ComboBox.qml
index 54d59817db..988b7c3782 100644
--- a/resources/qml/Widgets/ComboBox.qml
+++ b/resources/qml/Widgets/ComboBox.qml
@@ -31,12 +31,22 @@ ComboBox
},
State
{
+ name: "active"
+ when: control.activeFocus
+ PropertyChanges
+ {
+ target: background
+ borderColor: UM.Theme.getColor("text_field_border_active")
+ liningColor: UM.Theme.getColor("text_field_border_active")
+ }
+ },
+ State
+ {
name: "highlighted"
- when: base.hovered || control.hovered || control.activeFocus
+ when: (base.hovered || control.hovered) && !control.activeFocus
PropertyChanges
{
target: background
- borderColor: UM.Theme.getColor("text_field_border_hovered")
liningColor: UM.Theme.getColor("text_field_border_hovered")
}
}
diff --git a/resources/qml/Widgets/TextField.qml b/resources/qml/Widgets/TextField.qml
index a86f2548cc..085c7b7742 100644
--- a/resources/qml/Widgets/TextField.qml
+++ b/resources/qml/Widgets/TextField.qml
@@ -45,13 +45,23 @@ TextField
},
State
{
+ name: "active"
+ when: control.activeFocus
+ PropertyChanges
+ {
+ target: backgroundRectangle
+ liningColor: UM.Theme.getColor("text_field_border_active")
+ borderColor: UM.Theme.getColor("text_field_border_active")
+ }
+ },
+ State
+ {
name: "hovered"
- when: control.hovered || control.activeFocus
+ when: control.hovered && !control.activeFocus
PropertyChanges
{
target: backgroundRectangle
liningColor: UM.Theme.getColor("text_field_border_hovered")
- borderColor: UM.Theme.getColor("text_field_border_hovered")
}
}
]
diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json
index 616354659f..b3ee4c912b 100644
--- a/resources/themes/cura-light/theme.json
+++ b/resources/themes/cura-light/theme.json
@@ -363,7 +363,8 @@
"text_field": "background_1",
"text_field_border": [180, 180, 180, 255],
- "text_field_border_hovered": "border_accent_2",
+ "text_field_border_hovered": "border_main",
+ "text_field_border_active": "border_accent_2",
"text_field_border_disabled": "background_2",
"text_field_text": "text_default",
"text_field_text_disabled": "text_disabled",