Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma Camera
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Plasma Mobile
Plasma Camera
Commits
b8b4db78
Verified
Commit
b8b4db78
authored
May 18, 2020
by
Jonah Brüchert
🌳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve applicationHeader behaviour
parent
5d84b60e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
src/contents/ui/AboutPage.qml
src/contents/ui/AboutPage.qml
+1
-7
src/contents/ui/CameraPage.qml
src/contents/ui/CameraPage.qml
+3
-0
src/contents/ui/main.qml
src/contents/ui/main.qml
+0
-2
No files found.
src/contents/ui/AboutPage.qml
View file @
b8b4db78
...
...
@@ -35,13 +35,7 @@ import org.kde.kirigami 2.6 as Kirigami
Kirigami.AboutPage
{
aboutData
:
cameraAboutData
onIsCurrentPageChanged
:
{
if
(
isCurrentPage
)
applicationWindow
().
pageStack
.
globalToolBar
.
style
=
Kirigami
.
ApplicationHeaderStyle
.
Auto
else
applicationWindow
().
pageStack
.
globalToolBar
.
style
=
applicationWindow
().
headerStyle
}
globalToolBarStyle
:
Kirigami
.
Settings
.
isMobile
?
Kirigami
.
ApplicationHeaderStyle
.
Breadcrumb
:
Kirigami
.
ApplicationHeaderStyle
.
ToolBar
contextualActions
:
[
Kirigami.Action
{
...
...
src/contents/ui/CameraPage.qml
View file @
b8b4db78
...
...
@@ -58,6 +58,9 @@ Kirigami.Page {
bottomPadding
:
0
topPadding
:
0
globalToolBarStyle
:
Kirigami
.
Settings
.
isMobile
?
Kirigami
.
ApplicationHeaderStyle
.
None
:
Kirigami
.
ApplicationHeaderStyle
.
ToolBar
onIsCurrentPageChanged
:
isCurrentPage
&&
pageStack
.
depth
>
1
&&
pageStack
.
pop
()
leftAction
:
Kirigami.Action
{
id
:
switchModeAction
text
:
i18n
(
"
Switch mode
"
)
...
...
src/contents/ui/main.qml
View file @
b8b4db78
...
...
@@ -45,8 +45,6 @@ import QtMultimedia 5.8
Kirigami.ApplicationWindow
{
id
:
root
readonly
property
int
headerStyle
:
Kirigami
.
Settings
.
isMobile
?
Kirigami
.
ApplicationHeaderStyle
.
None
:
Kirigami
.
ApplicationHeaderStyle
.
ToolBar
Settings
{
id
:
settings
...
...
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