-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new design for animated dialogs (Drawers) and Check items
- Loading branch information
Showing
10 changed files
with
282 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Controls.Basic | ||
|
||
import "../../app/qmlV2/component" | ||
|
||
Column { | ||
padding: 20 | ||
spacing: 20 | ||
|
||
GroupBox { | ||
title: "MMCheckBox" | ||
background: Rectangle { | ||
color: "lightGray" | ||
border.color: "gray" | ||
} | ||
label: Label { | ||
color: "black" | ||
text: parent.title | ||
padding: 5 | ||
} | ||
|
||
Row { | ||
spacing: 20 | ||
anchors.fill: parent | ||
MMCheckBox { | ||
checked: false | ||
text: checked ? "checked" : "unchecked" | ||
} | ||
MMCheckBox { | ||
checked: true | ||
} | ||
MMCheckBox { | ||
checked: false | ||
enabled: false | ||
} | ||
MMCheckBox { | ||
checked: true | ||
enabled: false | ||
} | ||
} | ||
} | ||
|
||
GroupBox { | ||
title: "MMRadioButton" | ||
background: Rectangle { | ||
color: "lightGray" | ||
border.color: "gray" | ||
} | ||
label: Label { | ||
color: "black" | ||
text: parent.title | ||
padding: 5 | ||
} | ||
|
||
Row { | ||
spacing: 20 | ||
anchors.fill: parent | ||
MMRadioButton { | ||
text: "one" | ||
checked: false | ||
} | ||
MMRadioButton { | ||
text: "two" | ||
checked: true | ||
} | ||
MMRadioButton { | ||
text: "three" | ||
enabled: false | ||
checked: false | ||
} | ||
} | ||
} | ||
|
||
GroupBox { | ||
title: "MMSwitch" | ||
background: Rectangle { | ||
color: "lightGray" | ||
border.color: "gray" | ||
} | ||
label: Label { | ||
color: "black" | ||
text: parent.title | ||
padding: 5 | ||
} | ||
|
||
Row { | ||
spacing: 20 | ||
anchors.fill: parent | ||
MMSwitch { | ||
textOn: "ON" | ||
textOff: "OFF" | ||
checked: false | ||
} | ||
MMSwitch { | ||
text: "static" | ||
checked: true | ||
} | ||
MMSwitch { | ||
text: "disabled" | ||
enabled: false | ||
checked: false | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Controls.Basic | ||
|
||
import "../../app/qmlV2/component" | ||
import "../../app/qmlV2/Style.js" as Style | ||
|
||
Page { | ||
id: pane | ||
|
||
Column { | ||
width: parent.width | ||
spacing: 10 | ||
|
||
MMButton { | ||
text: "Upload" | ||
onClicked: drawer1.visible = true | ||
} | ||
MMButton { | ||
text: "Reached Data Limit" | ||
onClicked: drawer2.visible = true | ||
} | ||
MMButton { | ||
text: "Synchronization Failed" | ||
onClicked: drawer3.visible = true | ||
} | ||
} | ||
|
||
MMDrawer { | ||
id: drawer1 | ||
|
||
picture: Style.uploadImage | ||
title: "Upload project to Margin?" | ||
description: "This project is currently not uploaded on Mergin. Upload it to Mergin in order to activate synchronization and collaboration." | ||
primaryButton: "Yes, Upload Project" | ||
secondaryButton: "No Cancel" | ||
} | ||
|
||
MMDrawer { | ||
id: drawer2 | ||
|
||
picture: Style.ReachedDataLimitImage | ||
title: "You have reached a data limit" | ||
primaryButton: "Manage Subscription" | ||
specialComponent: MMButton { text: "Special Component"; padding: 20 } | ||
} | ||
|
||
MMDrawer { | ||
id: drawer3 | ||
|
||
picture: Style.uploadImage | ||
title: "Failed to synchronize your changes" | ||
description: "Your changes could not be sent to server, make sure you are connected to internet and have write access to this project." | ||
primaryButton: "Ok, I understand" | ||
boundedDescription: "Failed to push changes. Ask the project workspace owner to log in to their Mergin Maps dashboard for more information." | ||
visible: true | ||
} | ||
} |