Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SeeLook
nootka
Commits
a6cbf5e1
Commit
a6cbf5e1
authored
Oct 14, 2021
by
SeeLook
🎸
Browse files
[Android] Show 'About' icons over main menu label
- to prompt user what is inside
parent
f6805e00
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qml/+android/MainMenuMobile.qml
View file @
a6cbf5e1
...
...
@@ -118,11 +118,72 @@ TmobileMenu {
id
:
nooLabel
height
:
NOO
.
factor
()
*
7.91015625
// (logo ratio) 0.3955078125 * 20
enabled
:
!
GLOB
.
isExam
clip
:
true
onClicked
:
{
mainDrawer
.
close
()
NOO
.
aboutAct
.
trigger
()
}
Component.onCompleted
:
mainDrawer
.
label
=
this
property
int
currentItem
:
0
ListModel
{
id
:
paneModel
ListElement
{
txt
:
"
About
"
;
img
:
"
about
"
}
ListElement
{
txt
:
"
Help
"
;
img
:
"
help
"
}
ListElement
{
txt
:
"
Authors
"
;
img
:
"
author
"
}
ListElement
{
txt
:
"
License
"
;
img
:
"
license
"
}
ListElement
{
txt
:
"
Support
"
;
img
:
"
support
"
}
ListElement
{
txt
:
"
Changes
"
;
img
:
"
changes
"
}
}
Rectangle
{
id
:
item
width
:
parent
.
height
/
2
;
height
:
width
*
1.4
x
:
parent
.
width
-
width
-
NOO
.
factor
()
/
4
;
y
:
-
height
radius
:
width
/
8
color
:
Qt
.
rgba
(
0
,
0
,
0
,
0.8
)
Image
{
id
:
paneImg
source
:
NOO
.
pix
(
"
pane/
"
+
paneModel
.
get
(
nooLabel
.
currentItem
).
img
)
height
:
parent
.
width
;
width
:
height
*
(
sourceSize
.
width
/
sourceSize
.
height
)
visible
:
false
}
Colorize
{
anchors.fill
:
paneImg
source
:
paneImg
hue
:
0
;
lightness
:
0.5
;
saturation
:
0
}
Text
{
anchors
{
horizontalCenter
:
parent
.
horizontalCenter
;
bottom
:
parent
.
bottom
}
color
:
nooLabel
.
bgColor
text
:
NOO
.
TR
(
nooLabel
.
currentItem
===
1
?
"
QShortcut
"
:
"
TaboutNootka
"
,
paneModel
.
get
(
nooLabel
.
currentItem
).
txt
)
width
:
parent
.
width
;
horizontalAlignment
:
Text
.
AlignHCenter
fontSizeMode
:
Text
.
Fit
;
minimumPixelSize
:
NOO
.
factor
()
/
2
}
SequentialAnimation
{
loops
:
paneModel
.
count
running
:
true
PauseAnimation
{
duration
:
500
}
PropertyAnimation
{
target
:
item
;
property
:
"
y
"
duration
:
250
to
:
(
item
.
parent
.
height
-
item
.
height
)
/
2
}
PauseAnimation
{
duration
:
1500
}
PropertyAnimation
{
target
:
item
;
property
:
"
y
"
duration
:
500
to
:
item
.
parent
.
height
+
item
.
height
}
ScriptAction
{
script
:
{
item
.
y
=
-
item
.
height
if
(
nooLabel
.
currentItem
<
paneModel
.
count
-
1
)
nooLabel
.
currentItem
++
}
}
}
}
}
Repeater
{
model
:
examActions
...
...
Write
Preview
Supports
Markdown
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