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
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
7fcd1499
Commit
7fcd1499
authored
Sep 15, 2017
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove our isCompact concept and use Kirigami's
parent
d8db2fa6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
24 deletions
+8
-24
discover/qml/ApplicationsListPage.qml
discover/qml/ApplicationsListPage.qml
+1
-1
discover/qml/BrowsingPage.qml
discover/qml/BrowsingPage.qml
+1
-1
discover/qml/DiscoverDrawer.qml
discover/qml/DiscoverDrawer.qml
+5
-4
discover/qml/DiscoverWindow.qml
discover/qml/DiscoverWindow.qml
+1
-1
discover/qml/Helpers.qml
discover/qml/Helpers.qml
+0
-16
discover/resources.qrc
discover/resources.qrc
+0
-1
No files found.
discover/qml/ApplicationsListPage.qml
View file @
7fcd1499
...
...
@@ -42,7 +42,7 @@ DiscoverPage {
property
alias
allBackends
:
appsModel
.
allBackends
property
alias
count
:
apps
.
count
property
alias
listHeader
:
apps
.
header
property
bool
compact
:
page
.
width
<
500
||
Helpers
.
isCompact
property
bool
compact
:
page
.
width
<
500
||
!
applicationWindow
().
wideScreen
property
bool
canNavigate
:
true
readonly
property
alias
subcategories
:
appsModel
.
subcategories
...
...
discover/qml/BrowsingPage.qml
View file @
7fcd1499
...
...
@@ -42,7 +42,7 @@ DiscoverPage
Navigation
.
openCategory
(
null
,
""
)
}
property
bool
compact
:
page
.
width
<
500
||
Helpers
.
isCompact
readonly
property
bool
compact
:
page
.
width
<
500
||
!
applicationWindow
().
wideScreen
ListView
{
id
:
browsingView
...
...
discover/qml/DiscoverDrawer.qml
View file @
7fcd1499
...
...
@@ -28,6 +28,7 @@ import "navigation.js" as Navigation
Kirigami.GlobalDrawer
{
id
:
drawer
property
bool
wideScreen
:
false
bannerImageSource
:
"
qrc:/banners/banner.svg
"
//make the left and bottom margins for search field the same
topPadding
:
-
searchField
.
height
-
leftPadding
...
...
@@ -131,12 +132,12 @@ Kirigami.GlobalDrawer {
states
:
[
State
{
name
:
"
full
"
when
:
!
Helpers
.
isCompact
when
:
drawer
.
wideScreen
PropertyChanges
{
target
:
drawer
;
drawerOpen
:
true
}
},
State
{
name
:
"
compact
"
when
:
Helpers
.
isCompact
when
:
!
drawer
.
wideScreen
PropertyChanges
{
target
:
drawer
;
drawerOpen
:
false
}
}
]
...
...
@@ -188,6 +189,6 @@ Kirigami.GlobalDrawer {
actions
:
createCategoryActions
(
CategoryModel
.
rootCategories
)
modal
:
Helpers
.
isCompact
handleVisible
:
Helpers
.
isCompact
modal
:
!
drawer
.
wideScreen
handleVisible
:
!
drawer
.
wideScreen
}
discover/qml/DiscoverWindow.qml
View file @
7fcd1499
...
...
@@ -37,7 +37,6 @@ Kirigami.ApplicationWindow
readonly
property
var
leftPage
:
window
.
stack
.
depth
>
0
?
window
.
stack
.
get
(
0
)
:
null
Component.onCompleted
:
{
Helpers
.
mainWindow
=
window
if
(
app
.
isRoot
)
showPassiveNotification
(
i18n
(
"
Running as <em>root</em> is discouraged and unnecessary.
"
));
}
...
...
@@ -159,6 +158,7 @@ Kirigami.ApplicationWindow
}
globalDrawer
:
DiscoverDrawer
{
wideScreen
:
window
.
wideScreen
focus
:
true
}
...
...
discover/qml/Helpers.qml
deleted
100644 → 0
View file @
d8db2fa6
pragma
Singleton
import
QtQml
2.0
import
QtQuick
.
Window
2.2
import
org
.
kde
.
discover
.
app
1.0
QtObject
{
id
:
root
property
QtObject
mainWindow
:
null
property
int
compactMode
:
app
.
compactMode
readonly
property
real
width
:
root
.
mainWindow
?
root
.
mainWindow
.
width
:
0
///we'll use compact if the width of the window is less than 10cm
readonly
property
bool
isCompact
:
(
!
root
.
mainWindow
||
compactMode
!=
DiscoverMainWindow
.
Auto
)
?
compactMode
==
DiscoverMainWindow
.
Compact
:
(
width
/
root
.
mainWindow
.
Screen
.
pixelDensity
<
100
)
}
discover/resources.qrc
View file @
7fcd1499
...
...
@@ -32,7 +32,6 @@
<file>
qml/DiscoverPage.qml
</file>
<file>
qml/DiscoverWindow.qml
</file>
<file>
qml/DiscoverDrawer.qml
</file>
<file>
qml/Helpers.qml
</file>
<file>
qml/ActionListItem.qml
</file>
<file>
qml/LoadingPage.qml
</file>
...
...
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