Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Nano
Commits
335d75d8
Commit
335d75d8
authored
Jan 29, 2021
by
Marco Martin
Browse files
add a GHNS button
put it in a loader so it's not a mandatory dep, but can fail silently
parent
b2284341
Changes
2
Hide whitespace changes
Inline
Side-by-side
shell/contents/configuration/ContainmentConfiguration.qml
View file @
335d75d8
...
...
@@ -91,13 +91,18 @@ AppletConfiguration {
rightPadding
:
units
.
gridUnit
bottomPadding
:
units
.
gridUnit
contentItem
:
Controls.Button
{
icon.name
:
"
configure
"
text
:
i18nd
(
"
plasma_shell_org.kde.plasma.desktop
"
,
"
More Wallpapers...
"
)
onClicked
:
{
print
(
wallpapersView
.
currentIndex
)
internalDialog
.
visible
=
true
;
imageWallpaperDrawer
.
close
()
contentItem
:
ColumnLayout
{
Controls.Button
{
icon.name
:
"
configure
"
text
:
i18nd
(
"
plasma_shell_org.kde.plasma.desktop
"
,
"
Customize...
"
)
onClicked
:
{
print
(
wallpapersView
.
currentIndex
)
internalDialog
.
visible
=
true
;
imageWallpaperDrawer
.
close
()
}
}
Loader
{
source
:
Qt
.
resolvedUrl
(
"
GHNSButton.qml
"
)
}
}
background
:
Rectangle
{
...
...
shell/contents/configuration/GHNSButton.qml
0 → 100644
View file @
335d75d8
import
QtQuick
2.14
import
org
.
kde
.
newstuff
1.62
as
NewStuff
NewStuff.Button
{
configFile
:
"
wallpaper.knsrc
"
text
:
i18nd
(
"
plasma_wallpaper_org.kde.image
"
,
"
Download...
"
)
viewMode
:
NewStuff
.
Page
.
ViewMode
.
Preview
onChangedEntriesChanged
:
imageWallpaper
.
newStuffFinished
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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