From 6f65521ce88c8cdbbad9eea37273a0d0e504a29c Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 30 Nov 2021 14:56:09 +0100 Subject: [PATCH] Make icons smaller for tertiary buttons These are typically visually smaller buttons, since they don't have an outline. It makes more sense to use the size of the text then, or something thereabouts. Contributes to issue CURA-8565. --- resources/qml/TertiaryButton.qml | 1 + resources/themes/cura-light/theme.json | 1 + 2 files changed, 2 insertions(+) diff --git a/resources/qml/TertiaryButton.qml b/resources/qml/TertiaryButton.qml index 76684b6ef2..8171188232 100644 --- a/resources/qml/TertiaryButton.qml +++ b/resources/qml/TertiaryButton.qml @@ -16,4 +16,5 @@ Cura.ActionButton textDisabledColor: UM.Theme.getColor("action_button_disabled_text") hoverColor: "transparent" underlineTextOnHover: true + iconSize: UM.Theme.getSize("action_button_icon_small").height } diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json index 4bc6adc99c..6dec15aff8 100644 --- a/resources/themes/cura-light/theme.json +++ b/resources/themes/cura-light/theme.json @@ -564,6 +564,7 @@ "action_button": [15.0, 2.5], "action_button_icon": [1.5, 1.5], + "action_button_icon_small": [1.0, 1.0], "action_button_radius": [0.15, 0.15], "dialog_primary_button_padding": [3.0, 0],