Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Israel Garcia
libcloudstorage
Commits
20fc266e
Commit
20fc266e
authored
Feb 09, 2018
by
Paweł Wegner
Browse files
cloudbrowser: renamed visible_player to fullscreen_player.
parent
0af26d44
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/cloudbrowser/qml/MediaPlayer.qml
View file @
20fc266e
...
...
@@ -24,11 +24,13 @@ Kirigami.Page {
onIsCurrentPageChanged
:
{
if
(
!
isCurrentPage
)
{
platform
.
disableKeepScreenOn
();
root
.
fullscreen_player
=
false
;
root
.
visible_player
=
false
;
root
.
globalDrawer
.
handleVisible
=
handle_state
;
}
else
{
handle_state
=
root
.
globalDrawer
.
handleVisible
;
root
.
globalDrawer
.
handleVisible
=
false
;
root
.
visible_player
=
true
;
platform
.
enableKeepScreenOn
();
}
}
...
...
@@ -589,7 +591,7 @@ Kirigami.Page {
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
root
.
visible
_player
^=
1
;
root
.
fullscreen
_player
^=
1
;
timer
.
cnt
=
0
;
}
}
...
...
bin/cloudbrowser/qml/main.qml
View file @
20fc266e
...
...
@@ -9,6 +9,7 @@ Kirigami.ApplicationWindow {
property
bool
ad_loaded
:
false
property
bool
ad_visible
:
include_ads
property
bool
visible_player
:
false
property
bool
fullscreen_player
:
false
property
bool
drawer_state
:
false
property
bool
detailed_options
:
!
platform
.
mobile
()
||
root
.
height
>
root
.
width
property
bool
auth_error_occurred
:
false
...
...
@@ -22,8 +23,8 @@ Kirigami.ApplicationWindow {
width
:
Math
.
min
(
800
,
screen
.
desktopAvailableWidth
)
height
:
Math
.
min
(
600
,
screen
.
desktopAvailableHeight
)
on
Visible
_playerChanged
:
{
if
(
visible
_player
)
{
on
Fullscreen
_playerChanged
:
{
if
(
fullscreen
_player
)
{
drawer_state
=
globalDrawer
.
drawerOpen
;
globalDrawer
.
drawerOpen
=
false
;
if
(
platform
.
mobile
())
platform
.
landscapeOrientation
();
...
...
@@ -43,7 +44,7 @@ Kirigami.ApplicationWindow {
}
}
header
:
visible
_player
?
null
:
header
header
:
fullscreen
_player
?
null
:
header
Kirigami.ApplicationHeader
{
id
:
header
...
...
@@ -201,7 +202,7 @@ Kirigami.ApplicationWindow {
"
Actions
"
}
pageStack.initialPage
:
mainPageComponent
pageStack.interactive
:
!
visible
_player
pageStack.interactive
:
!
fullscreen
_player
pageStack.defaultColumnWidth
:
10000
pageStack.anchors.bottomMargin
:
footer_height
...
...
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