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
l10n daemon script
7bb5f17a92
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
4 years ago
Fushan Wen
e7e70ec525
wallpapers/image: update dark wallpaper test
...
A KPackage wallpaper containing a dark variant is added to the test
data.
CCBUG: 207976
4 years ago
Fushan Wen
fa8abc5066
wallpapers/image: show light&&dark images side by side in previews
...
CCBUG: 207976
4 years ago
Fushan Wen
909a7ad979
wallpapers/image: increase cache size to 30
4 years ago
l10n daemon script
f243c71f2b
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
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
9e1cfd57df
wallpapers/image: move `setaswallpaper.desktop.in` out of imagepackage
...
This prvents the file from being installed with the image package.
CCBUG: 358038
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
79e5586647
wallpapers/image: update tests
...
A new image is added to the default folder.
CCBUG: 454692
4 years ago
Fushan Wen
9a26576683
wallpapers/image: use url argument type in `addUsersWallpaper`
...
The hash sign # will be converted to % when using string argument type.
CCBUG: 454692
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
l10n daemon script
79b5eb22a6
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
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
Volker Krause
0cb48a1e96
Explicitly create QFileInfo from QString
...
Qt6 doesn't allows this implicitly anymore.
4 years ago
Volker Krause
74614801ae
Add various missing includes and link libraries
...
Those are no longer pulled in indirectly with KF deprecation level 5.94.
4 years ago
Fushan Wen
97a9a98ec5
wallpapers/image: Use QStringLiteral
4 years ago
Fushan Wen
f921af3e4e
wallpapers/image: Register KFileItem in registerTypes()
4 years ago
Fushan Wen
b23fa2d92d
wallpapers/image: Remove BackgroundListModel
4 years ago
Fushan Wen
451a6a0733
wallpapaers/image: Add autotests for ImageBackend
...
Use Qt Quick Test to test the backend can provide correct model images.
4 years ago
Fushan Wen
4e83485718
wallpapers/image: Adapt to model changes in ImageBackend and QML frontend
4 years ago
Fushan Wen
d63cf4a76b
wallpapers/image: Add autotests for SlideFilterModel
4 years ago
Fushan Wen
5a607c33b2
wallpapers/image: Add roleNames() in SlideFilterModel
4 years ago
Fushan Wen
cca481b79a
wallpapers/image: Add custom image provider for KPackage wallpapers
...
The url format is image://package/get?dir=<DIR>
DIR is package path.
4 years ago
Fushan Wen
3153540284
wallpapers/image: Add autotest for SlideModel
4 years ago
Fushan Wen
9fab17a67d
wallpapers/image: Rewrite SlideModel based on QConcatenateTablesProxyModel
...
SlideModel is inherited from QConcatenateTablesProxyModel, and its
source model is ImageProxyModel. Each folder will create its
corresponding ImageProxyModel.
4 years ago
Fushan Wen
b1b841a28c
wallpapers/image: Move openContainingFolder to SlideFilterModel
4 years ago
Fushan Wen
59188cf191
wallpapers/image: Add autotest for ImageProxyModel
4 years ago
Fushan Wen
f96b82b122
wallpapers/image: Add ImageProxyModel
...
A proxy model that aggregates data from ImageListModel and PackageListModel.
4 years ago
Fushan Wen
61de99dd64
wallpapers/image: Add autotest for PackageListModel
4 years ago
Fushan Wen
0d68f88850
wallpapers/image: Add PackageListModel
...
List KPackage wallpapers, usually in a folder.
4 years ago
Fushan Wen
c247589f4e
wallpapers/image: Add autotest for ImageListModel
4 years ago
Fushan Wen
d4a1c07a81
wallpapers/image: Add ImageListModel
...
List images that do not belong to any KPackages.
4 years ago
Fushan Wen
78df214f6c
wallpapers/image: Add AbstractImageListModel class
...
This serves as the base class for image list models.
4 years ago
Fushan Wen
9a473c8240
wallpapers/image: Remove testfindpreferredimage
...
It's moved to PackageFinderTest.
4 years ago
Fushan Wen
5ce62bd74c
wallpapers/image: Add autotest for PackageFinder
...
Test PackageFinder can find packages and choose a correct size.
4 years ago
Fushan Wen
523ed1e053
wallpapers/image: Add PackageFinder
...
Find KPackage wallpapers.
4 years ago
Fushan Wen
d0a580c539
wallpapers/image: Add autotest for ImageFinder
...
Test ImageFinder can find images.
4 years ago
Fushan Wen
bf006a4866
wallpapers/image: Add ImageFinder to find images
...
A runnable that finds all available images in the specified paths.
4 years ago
Fushan Wen
a1b63b685f
wallpapers/image: Add findSymlinkTarget()
...
This helps find the real file path.
4 years ago
Fushan Wen
ce6dbf90b9
wallpapers/image: Move distance and resSize to distance.cpp
4 years ago