Skip to content

Commit

Permalink
Merge pull request #16624 from Ultimaker/CURA-10835_make_setting_hidd…
Browse files Browse the repository at this point in the history
…en_icon

Icon is dragged into visible area
  • Loading branch information
casperlamboo authored Sep 1, 2023
2 parents e064044 + 5c2b127 commit 6ef4758
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions resources/qml/Preferences/SettingVisibilityItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Item
width: childrenRect.width;
height: childrenRect.height;
id: checkboxTooltipArea
x: check.height
UM.CheckBox
{
id: check
Expand All @@ -40,7 +41,7 @@ Item
{
width: height
height: check.height
anchors.left: checkboxTooltipArea.right
anchors.right: checkboxTooltipArea.left
anchors.leftMargin: 2 * screenScaleFactor

text:
Expand Down Expand Up @@ -82,7 +83,7 @@ Item

source: UM.Theme.getIcon("Information")

color: UM.Theme.getColor("primary_button_text")
color: UM.Theme.getColor("small_button_text")
}

visible: provider.properties.enabled == "False"
Expand Down
4 changes: 2 additions & 2 deletions resources/qml/Settings/SettingView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Item
Cura.TextField
{
id: filter
height: parent.height
implicitHeight: parent.height
anchors.left: parent.left
anchors.right: parent.right
topPadding: height / 4
Expand Down Expand Up @@ -337,7 +337,7 @@ Item
}
function onShowTooltip(text) { base.showTooltip(delegate, Qt.point(-settingsView.x - UM.Theme.getSize("default_margin").width, 0), text) }
function onHideTooltip() { base.hideTooltip() }
function onShowAllHiddenInheritedSettings()
function onShowAllHiddenInheritedSettings(category_id)
{
var children_with_override = Cura.SettingInheritanceManager.getChildrenKeysWithOverride(category_id)
for(var i = 0; i < children_with_override.length; i++)
Expand Down

0 comments on commit 6ef4758

Please sign in to comment.