Skip to content

Conversation

@gabriel-bolbotina
Copy link
Contributor

@gabriel-bolbotina gabriel-bolbotina commented Dec 22, 2025

Modified the components inside the MMSKetchesDrawer.

Below there is the fixed UI:

ScreenRecording_12-22-2025.16-00-28_1.MP4

Copy link
Contributor

@Withalion Withalion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it's probably a good time to create component out of the solutions in MMSketchesDrawer.qml and MMFormPhotoSketchingPageDialog.qml.

@github-actions
Copy link

github-actions bot commented Jan 2, 2026

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 61741 dmg Expires: 02/04/2026 #6174
linux Build 📭 Build not yet complete or failed.
win64 Build 📬 Mergin Maps 53671 win64 Expires: 02/04/2026 #5367
Android Build 📬 Mergin Maps 748411 APK [armeabi-v7a] Expires: 02/04/2026 #7484
Android Build 📬 Mergin Maps 748451 APK [arm64-v8a] Expires: 02/04/2026 #7484
iOS Build 📬 Build number: 26.01.842511 #8425

Copy link
Contributor

@Withalion Withalion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some additional work that needs to be done before we can proceed further

@github-actions
Copy link

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📭 Build not yet complete or failed.
linux Build 📭 Build not yet complete or failed.
win64 Build 📬 Mergin Maps 53971 win64 Expires: 16/04/2026 #5397
Android Build 📬 Mergin Maps 751451 APK [arm64-v8a] Expires: 16/04/2026 #7514
Android Build 📬 Mergin Maps 751411 APK [armeabi-v7a] Expires: 16/04/2026 #7514
iOS Build 📬 Build number: 26.01.845511 #8455

Copy link
Contributor

@Withalion Withalion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much nicer

Side note: I was able to scroll the colors without any issues on android, but it doesn't work at all on desktop.

Copy link
Contributor

@Withalion Withalion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@Withalion Withalion requested a review from tomasMizera January 19, 2026 20:26
@github-actions
Copy link

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 62161 dmg Expires: 20/04/2026 #6216
linux Build 📭 Build not yet complete or failed.
win64 Build 📬 Mergin Maps 54091 win64 Expires: 20/04/2026 #5409
Android Build 📬 Mergin Maps 752651 APK [arm64-v8a] Expires: 20/04/2026 #7526
Android Build 📬 Mergin Maps 752611 APK [armeabi-v7a] Expires: 20/04/2026 #7526
iOS Build 📬 Build number: 26.01.846711 #8467

@@ -0,0 +1,30 @@
import QtQuick
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing licence header

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also in other files

@@ -0,0 +1,30 @@
import QtQuick

MMRoundButton {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to base this from MMRoundButton? It seems like these two have nothing in common. You are rewriting the whole component here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I was the one creating the initial Component and it made more sense in the previous version to modify MMRoundButton instead. As we are creating a new component here yeah it's good point to rebase the component.

MMRoundButton {
id: root

required property color chosenColor
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the button is chosen or not is defined by the isSelected prop, right? In that case this is just a color, no matter if the button is selected or not.

Suggested change
required property color chosenColor
required property color buttonColor

width: __style.margin48
height: __style.margin48

color: root.isSelected ? __style.transparentColor : __style.lightGreenColor
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The background color is lightGreen if the button is not selected? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it creates this slightly visible halo around the button. Important for white and similar colors, which can blend with background.

MMComponents.MMListSpacer { implicitHeight: __style.margin20 }

ScrollView {
MMComponents.MMColorPicker{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The width is never defined

Comment on lines +68 to +69
Layout.preferredHeight: scrollRow.height
Layout.preferredWidth: scrollRow.width
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scrollRow is a nested id inside MMColorPicker. It should not be used outside of its file. Unless I am missing something, the width of the color picker should be set from outside, just like you set maximumWidth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map sketching color buttons do not show which one is selected

4 participants