Fushan Wen
81f6da8e3b
wallpapers/image: move baseImage to mediacomponent/ImageComponent.qml
...
It makes the frontend easier to be maintained, and in the future VideoComponent
will be added.
4 years ago
Fushan Wen
fa0f7396d1
wallpapers/image: remove redundant destroy call
...
The object does not need to be manually deleted. onDeactivated signal
will call destroy() to delete it.
(This reverts a8a455e8fe )
4 years ago
Fushan Wen
a8a455e8fe
wallpapers/image: fix a memory leak when pending image fails to load
...
This destroys the created image object when it fails to load.
4 years ago
Fushan Wen
4a95a33b62
wallpapers/image: instantly apply wallpaper on color scheme changed
...
CCBUG: 207976
4 years ago
Fushan Wen
ba73809a78
wallpapers/image: add opacity animation in wallpaper item
4 years ago
Fushan Wen
f7dec7cfd9
wallpapers/image: add color change animation in wallpaper item
4 years ago
Fushan Wen
8b64196342
wallpapers/image: move image part to `MediaProxy` and update `ImageBackendTest`
...
This simplifies ImageBackend, and makes the config dialog load slightly faster.
4 years ago
Fushan Wen
0e699f49ec
wallpapers/image: remove unused `selected` property
4 years ago
Fushan Wen
514cbc788a
wallpapers/image: don't duplicate `positionViewAtIndex` in `KCM.GridView`
...
It's already set in GridViewInternal.
4 years ago
Fushan Wen
e8613dda73
wallpapers/image: don't duplicate placeholder message in `KCM.GridView`
...
There is one placeholder message in `KCM.GridView`.
4 years ago
Fushan Wen
1ae570e4b3
wallpapers/image: scroll to top after finishing adding images using file dialog
...
CCBUG: 455129
4 years ago
Fushan Wen
bf97a204b8
wallpapers/image: scroll to top to view added images after DnD operations
...
CCBUG: 455129
4 years ago
Fushan Wen
c857d3bad5
wallpapers/image: set position in `resetCurrentIndex`
...
Move the position of the image list view to the currently selected
item's index.
CCBUG: 455129
4 years ago
Fushan Wen
8df97ad323
wallpapers/image: follow system animation speed setting in wallpaper transition
...
The value is to keep compatible with the old feeling defined by
"TransitionAnimationDuration" (default: 1000)
BUG: 395324
FIXED-IN: 5.26
4 years ago
Fushan Wen
f106e61c5e
wallpapers/image: add dark wallpaper support for KPackage wallpapers
...
Dark wallpapers are put in contents/images_dark folder. The dark
wallpaper will be used when system color scheme is dark.
FEATURE: 207976
FIXED-IN: 5.26
4 years ago
Fushan Wen
b8c7ba8a22
wallpapers/image: update accent color when image finishes loading
...
BUG: 454908
FIXED-IN: 5.26
4 years ago
Fushan Wen
fbeed51e61
wallpapers/image: fix apply button not being enabled after adding wallpapers
...
Enable the apply button after:
1. Drag and drop
2. Add an image using the file dialog
3. Delete an image that is not the currently selected one
4 years ago
Fushan Wen
9f7c40f26e
wallpapers/image: fix drag and drop in config dialog
...
Use url data type directly, no need to convert url to string.
4 years ago
Fushan Wen
18069a0f4a
wallpapers/image: click image to preview
...
FEATURE: 403384
FIXED-IN: 5.26
4 years ago
Fushan Wen
3ca3bc7e52
wallpapers/image: hide placeholder message when the image list is being loaded
4 years ago
Fushan Wen
96e3232ae5
wallpapers/image: call `resetCurrentIndex` after the image list is loaded
...
This makes the current image focused again by default.
4 years ago
Fushan Wen
31b7090224
wallpapers/image: use string data type for `image` property
...
`wallpaper.configuration.Image` has string type, and assigning a string
value from QML to a url in C++ will truncate the string at the hash char.
This changes `image` data type to string to fix the bug.
BUG: 454692
FIXED-IN: 5.26
4 years ago
Fushan Wen
078bfa3e4a
wallpapers/image: save drag and drop result after `addSlidePath`
4 years ago
Fushan Wen
19084358c7
wallpapers/image: use the aspect ratio of the screen it will change the wallpaper for
...
Th aspect ratio of thumbnails should follow the Plasmoid size, not the screen size.
BUG: 452308
FIXED-IN: 5.25
4 years ago
Fushan Wen
36cbf57881
wallpapers/image: enable `reuseItems` in wallpaper `GridView`
...
This makes the scrolling smoother when there are many wallpapers in the
view.
4 years ago
Fushan Wen
4e83485718
wallpapers/image: Adapt to model changes in ImageBackend and QML frontend
4 years ago
Fushan Wen
5ad0abb76b
wallpapers/image: Move components to individual files
...
This makes config.qml less crowded, and will install SlideshowComponent
only to slideshow folder to save some space.
4 years ago
Fushan Wen
0cce4af290
wallpapers/image: Rename named Wallpaper import to PlasmaWallpaper
...
This avoids a naming collision with "Wallpaper" from org.kde.plasma.plasmoid
4 years ago
Aleix Pol
09e9c3ccf0
wallpapers/image: Check against the attached property, not the context
...
We are porting away from using the context property, seems like we
forgot this one.
4 years ago
Aleix Pol
778a664ef9
wallpapers/image: Fix warning, there is no such wallpaperComboBox
4 years ago
Fushan Wen
85c90df7ae
wallpapers/image: Multiply devicePixelRatio for targetSize
...
This fixes that "Open Containing Folder" highlights the image with a wrong resolution
in a package.
4 years ago
Fushan Wen
cab736b29f
wallpapers/image: Move SortingMode enums to sortingmode.h
4 years ago
Fushan Wen
956fdd0b34
wallpapers/image: Rename Image to ImageBackend
...
This avoids confusion with QML Image.
4 years ago
Fushan Wen
df461ae414
wallpapers/image: Use onActivated instead of onCurrentIndexChanged
...
This fixes sometimes the combobox is set to an incorrect index.
4 years ago
Fushan Wen
fc9b7f0c6a
wallpapers/image: Break in setMethod
...
No need to continue loop after currentIndex is set.
4 years ago
Alexander Lohnau
40aa022578
Port to KNewStuff.Entry enums rather than using magic numbers
4 years ago
Aleix Pol
d18973e046
image: Remove unused SystemPalette instance
4 years ago
Aleix Pol
5290d8e66e
Port from using plasmoid to Plasmoid
...
That is, from using plasmoid the ContextProperty to Plasmoid the
attached property.
4 years ago
Iaroslav Sheveliuk
f2afc13d6b
Wallpaper preview should respect the screen aspect ratio
...
Wallpaper thumbnails was using the landscape orientation all the time.
Now thumbnail size depends on the screen size, so aspect ratio is respected.
BUG: 399354
4 years ago
Nate Graham
5454b8dc88
[wallpapers/image] FIX FIXME and position placeholder message properly
...
BUG: 438652
FIXED-IN: 5.23
5 years ago
Alexander Lohnau
c11051955d
Convert license headers to SPDX
5 years ago
Mihai Sorin Dobrescu
6906173826
[wallpapers/image] Allow grouping by folder in slideshow
...
This allows people to specify that all of the wallpapers in each folder
need to be displayed before moving onto wallpapers in the next folder.
BUG: 426529
FIXED-IN: 5.23
5 years ago
David Edmundson
9c5962eaaf
[wallpapers/image] Port to Qt D&D
5 years ago
Alexander Lohnau
8afe8df72d
GIT_SILENT Descriptive comments for enum int values
5 years ago
Alexander Lohnau
7be09fc4a6
wallpaper dialog: Port away from deprecated KNewStuff signals
5 years ago
Felipe Kinoshita
c52df1e792
Use ellipses instead of triple period
...
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
5 years ago
Filip Fila
d375034d09
[Image wallpaper] Make the Positioning combobox as equally wide as the other comboboxes
...
The wallpaper infrastructure sutures multiple form layouts.
The image wallpaper adds its own Positioning combobox, but the combobox's width does not match that of the two comboboxes right above it.
This patch makes the Positioning combobox as wide as the other two by resuing code already present in ConfigurationContainmentAppearance.qml.
5 years ago
Dan Leinir Turthra Jensen
2e9d3152df
Also add the mobile wallpaper option to the other kns button
...
Turns out there are two KNewStuff buttons here, so we'll want to make
sure to do this for both of them.
5 years ago
Julianne Hervier
d4df4263da
Fix wallpaper paths in org.kde.slideshow package
5 years ago
Dan Leinir Turthra Jensen
d92277389b
Add special wallpapers knsrc for mobile use
...
This patch introduces a new knsrc for wallpapers that's supposed to be
used for mobile devices. While many of the existing wallpapers on the
store do work for mobile use, a great many of them only focus on desktop
style form factors, and since there's mobile-focused categories on the
store now, we probably want to make use of that.
5 years ago