Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Maui
Pix
Commits
b03b81ab
Commit
b03b81ab
authored
Jul 06, 2019
by
camilo higuita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style ux ui migration
parent
03e43f93
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
56 deletions
+44
-56
src/main.qml
src/main.qml
+18
-24
src/view_models/PixGrid.qml
src/view_models/PixGrid.qml
+0
-9
src/view_models/PixMenu.qml
src/view_models/PixMenu.qml
+12
-10
src/widgets/SelectionBar.qml
src/widgets/SelectionBar.qml
+11
-9
src/widgets/views/Viewer/ViewerMenu.qml
src/widgets/views/Viewer/ViewerMenu.qml
+3
-4
No files found.
src/main.qml
View file @
b03b81ab
...
...
@@ -18,11 +18,9 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
import
QtQuick
2.9
import
QtQuick
.
Controls
2.2
import
QtQuick
.
Layouts
1.3
import
QtQuick
.
Controls
.
Material
2.1
import
org
.
kde
.
kirigami
2.6
as
Kirigami
import
org
.
kde
.
mauikit
1.0
as
Maui
...
...
@@ -54,8 +52,6 @@ import TagsList 1.0
import
SyncingModel
1.0
import
SyncingList
1.0
import
FMList
1.0
import
StoreList
1.0
Maui.ApplicationWindow
...
...
@@ -110,7 +106,7 @@ Maui.ApplicationWindow
/*************************************************/
onSearchButtonClicked
:
currentView
=
views
.
search
rightIcon.icon
C
olor
:
currentView
===
views
.
search
?
highlightColor
:
headBarFGColor
//
rightIcon.icon
.c
olor: currentView === views.search ? highlightColor : headBarFGColor
// rightIcon.showIndicator: currentView === views.search
// menuDrawer.bannerImageSource: "qrc:/img/assets/banner.png"
...
...
@@ -134,27 +130,27 @@ Maui.ApplicationWindow
Maui.
MenuItem
MenuItem
{
text
:
"
Sources
"
icon.name
:
"
folder-add
"
onTriggered
:
{
//
dialogLoader.sourceComponent = sourcesDialogComponent;
//
dialog.open()
dialogLoader
.
sourceComponent
=
sourcesDialogComponent
;
dialog
.
open
()
dialogLoader
.
sourceComponent
=
fmDialogComponent
dialog
.
mode
=
dialog
.
modes
.
OPEN
dialog
.
onlyDirs
=
true
dialog
.
show
(
function
(
paths
)
{
pix
.
addSources
(
paths
)
})
//
dialogLoader.sourceComponent= fmDialogComponent
//
dialog.mode= dialog.modes.OPEN
//
dialog.onlyDirs= true
//
dialog.show(function(paths)
//
{
//
pix.addSources(paths)
//
})
}
},
Maui.
MenuItem
MenuItem
{
text
:
"
Open...
"
icon.name
:
"
folder-open
"
...
...
@@ -162,14 +158,12 @@ Maui.ApplicationWindow
{
dialogLoader
.
sourceComponent
=
fmDialogComponent
dialog
.
mode
=
dialog
.
modes
.
OPEN
dialog
.
filterType
=
FMList
.
IMAGE
dialog
.
filterType
=
Maui
.
FMList
.
IMAGE
dialog
.
onlyDirs
=
false
dialog
.
show
(
function
(
paths
)
{
console
.
log
(
"
OPEN THIS PATHS
"
,
paths
)
pix
.
openPics
(
paths
)
});
}
}
...
...
@@ -380,7 +374,7 @@ Maui.ApplicationWindow
{
onlyDirs
:
false
mode
:
modes
.
SAVE
filterType
:
FMList
.
IMAGE
filterType
:
Maui
.
FMList
.
IMAGE
}
}
...
...
@@ -395,14 +389,14 @@ Maui.ApplicationWindow
headBarTitle
:
qsTr
(
"
Sources
"
)
headBar.rightContent
:
[
Maui.
ToolButton
ToolButton
{
icon
N
ame
:
"
list-add
"
icon
.n
ame
:
"
list-add
"
},
Maui.
ToolButton
ToolButton
{
icon
N
ame
:
"
list-remove
"
icon
.n
ame
:
"
list-remove
"
}
]
...
...
src/view_models/PixGrid.qml
View file @
b03b81ab
...
...
@@ -6,7 +6,6 @@ import org.kde.kirigami 2.6 as Kirigami
import
org
.
kde
.
mauikit
1.0
as
Maui
import
PixModel
1.0
import
GalleryList
1.0
import
FMList
1.0
import
"
../widgets/views/Viewer/Viewer.js
"
as
VIEWER
import
"
../widgets/views/Pix.js
"
as
PIX
...
...
@@ -107,14 +106,6 @@ Maui.Page
onTriggered
:
pixList
.
sortBy
=
GalleryList
.
DATE
}
// Maui.MenuItem
// {
// text: qsTr("Place")
// checkable: true
// checked: pixList.sortBy === FMList.PLACE
// onTriggered: pixList.sortBy = FMList.PLACE
// }
Kirigami.Action
{
text
:
qsTr
(
"
Format
"
)
...
...
src/view_models/PixMenu.qml
View file @
b03b81ab
...
...
@@ -2,10 +2,12 @@ import QtQuick 2.9
import
QtQuick
.
Controls
2.3
import
QtQuick
.
Layouts
1.3
import
org
.
kde
.
mauikit
1.0
as
Maui
import
org
.
kde
.
kirigami
2.6
as
Kirigami
import
"
../db/Query.js
"
as
Q
import
"
../widgets/views/Pix.js
"
as
PIX
Maui.
Menu
Menu
{
id
:
control
...
...
@@ -14,7 +16,7 @@ Maui.Menu
onOpened
:
isFav
=
dba
.
isFav
(
list
.
get
(
index
).
url
)
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Select
"
)
onTriggered
:
PIX
.
selectItem
(
list
.
get
(
index
))
...
...
@@ -22,13 +24,13 @@ Maui.Menu
MenuSeparator
{}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
isFav
?
"
UnFav it
"
:
"
Fav it
"
)
onTriggered
:
list
.
fav
(
index
,
!
isFav
)
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Add to...
"
)
onTriggered
:
...
...
@@ -38,7 +40,7 @@ Maui.Menu
}
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Tags...
"
)
onTriggered
:
...
...
@@ -48,7 +50,7 @@ Maui.Menu
}
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Share...
"
)
onTriggered
:
...
...
@@ -63,7 +65,7 @@ Maui.Menu
}
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Save to...
"
)
onTriggered
:
...
...
@@ -88,7 +90,7 @@ Maui.Menu
}
}
Maui.
MenuItem
MenuItem
{
visible
:
!
isAndroid
text
:
qsTr
(
"
Show in folder...
"
)
...
...
@@ -112,10 +114,10 @@ Maui.Menu
MenuSeparator
{}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Remove...
"
)
colorSc
heme.textColor
:
dangerColor
Kirigami.T
heme.textColor
:
dangerColor
onTriggered
:
{
removeDialog
.
open
()
...
...
src/widgets/SelectionBar.qml
View file @
b03b81ab
...
...
@@ -2,6 +2,8 @@ import QtQuick 2.9
import
QtQuick
.
Controls
2.3
import
QtQuick
.
Layouts
1.3
import
org
.
kde
.
mauikit
1.0
as
Maui
import
org
.
kde
.
kirigami
2.6
as
Kirigami
import
"
../widgets/views/Pix.js
"
as
PIX
import
"
../widgets/views/Viewer/Viewer.js
"
as
VIEWER
...
...
@@ -18,17 +20,17 @@ Maui.SelectionBar
onExitClicked
:
clear
()
colorScheme.backgroundColor
:
"
#212121
"
Maui.
Menu
Menu
{
id
:
_menu
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Un/Fav them
"
)
onTriggered
:
VIEWER
.
fav
(
selectedPaths
)
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Add to...
"
)
onTriggered
:
...
...
@@ -38,7 +40,7 @@ Maui.SelectionBar
}
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Tags...
"
)
onTriggered
:
...
...
@@ -48,7 +50,7 @@ Maui.SelectionBar
}
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Share...
"
)
onTriggered
:
...
...
@@ -63,7 +65,7 @@ Maui.SelectionBar
}
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Save to...
"
)
onTriggered
:
...
...
@@ -79,7 +81,7 @@ Maui.SelectionBar
}
}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Show in folder...
"
)
onTriggered
:
pix
.
showInFolder
(
selectedPaths
)
...
...
@@ -87,10 +89,10 @@ Maui.SelectionBar
MenuSeparator
{}
Maui.
MenuItem
MenuItem
{
text
:
qsTr
(
"
Remove...
"
)
colorSc
heme.textColor
:
dangerColor
Kirigami.T
heme.textColor
:
dangerColor
onTriggered
:
{
removeDialog
.
open
()
...
...
src/widgets/views/Viewer/ViewerMenu.qml
View file @
b03b81ab
...
...
@@ -3,13 +3,12 @@ import QtQuick.Controls 2.2
import
QtQuick
.
Layouts
1.3
import
org
.
kde
.
kirigami
2.2
as
Kirigami
import
org
.
kde
.
mauikit
1.0
as
Maui
import
FMList
1.0
import
"
../../../view_models
"
Maui.
Menu
Menu
{
Maui.
MenuItem
MenuItem
{
checkable
:
true
checked
:
tagBarVisible
...
...
@@ -17,7 +16,7 @@ Maui.Menu
onTriggered
:
toogleTagbar
()
}
Maui.
MenuItem
MenuItem
{
checkable
:
true
checked
:
galleryRoll
.
visible
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment