region selector: remove auto fullscreen ocr, make close btn fab

ocr-ing the whole screen slow and messy. it's better to just go with the regular flow of selecting a region
This commit is contained in:
end-4
2025-10-24 23:45:08 +02:00
parent e6eb53796d
commit 531411315e
4 changed files with 40 additions and 81 deletions
@@ -12,9 +12,9 @@ RippleButton {
property bool expanded: false
property real baseSize: 56
property real elementSpacing: 5
implicitWidth: Math.max(contentRowLayout.implicitWidth + 10 * 2, baseSize)
implicitWidth: expanded ? (Math.max(contentRowLayout.implicitWidth + 10 * 2, baseSize)) : baseSize
implicitHeight: baseSize
buttonRadius: Appearance.rounding.small
buttonRadius: baseSize / 14 * 4
colBackground: Appearance.colors.colPrimaryContainer
colBackgroundHover: Appearance.colors.colPrimaryContainerHover
colRipple: Appearance.colors.colPrimaryContainerActive
@@ -11,6 +11,7 @@ RippleButton {
property string mainText: "Button text"
property Component mainContentComponent: Component {
StyledText {
visible: text !== ""
text: buttonWithIconRoot.mainText
font.pixelSize: Appearance.font.pixelSize.small
color: Appearance.colors.colOnSecondaryContainer