Fushan Wen
214cbeaf62
wallpapers/image: unify coding style in `replaceWhenLoaded()`
4 years ago
Fushan Wen
02d56ca8b1
wallpapers/image: fix default image overriding the true image
...
The default image is set in MediaProxy ctor. When the default image is
still in loading status, the model image can change and be already
loaded before the default image is loaded, therefore there could be a
race condition that the default image is loaded later and overrides the
true image.
This stores the pending image and destroys the previous pending image
to fix the race condition.
BUG: 456189
FIXED-IN: 5.26
4 years ago
l10n daemon script
8e7c9dbe5c
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
2339ea9bb6
wallpapers/image: force reload wallpaper after target size changes
...
When the target size changes while the provider type is single image
or the current wallpaper is animated, the frontend is required to force
update the wallpaper.
4 years ago
Fushan Wen
782f9570eb
wallpapers/color: call repaintNeeded after color is changed
...
Call `repaintNeeded` to update the accent color after the color is changed.
4 years ago
Fushan Wen
fd3ef7c318
shell: add images_dark definition in WallpaperPackage
4 years ago
Fushan Wen
62cc135968
wallpapers/image: Hide background color when not needed
...
This avoids showing the background color during the transition.
BUG: 410313
FIXED-IN: 5.26
4 years ago
Fushan Wen
c1fb3388a1
wallpapers/image: remove unused QScreen header
4 years ago
Fushan Wen
6e43d46981
wallpapers/image: add animated image support
...
FEATURE: 454984
FIXED-IN: 5.26
4 years ago
Fushan Wen
013ad03370
wallpapers/image: add `MaximizedWindowMonitor` to monitor maximized window
...
This class monitors if there is any maximized window. It is used by
the animated image component.
4 years ago
l10n daemon script
189ff0c175
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
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
l10n daemon script
0b7f20a81d
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
c109dc8b36
wallpapers/image: use `m_formattedSource` in `determineProviderType`
...
No need to call formatUrl again.
4 years ago
Fushan Wen
1ed50d01b8
wallpapers/image: add avif and heif formats in metadata
...
This allows the two formats being set in the drop menu or using "Set as
Wallpaper" service action.
4 years ago
Fushan Wen
7d74e3cab2
wallpapers/image: add gif format support in "Set as Wallpaper"
4 years ago
Fushan Wen
25aaec219e
wallpapers/image: store formatted source url
...
No need to call formatUrl every time using it.
4 years ago
Fushan Wen
62e3aef4c9
wallpapers/image: add support for gif format
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
0dbcba3dec
wallpapers/image: replace `openFolder` with `Qt.openUrlExternally`
...
This makes ImageBackend lighter.
4 years ago
Fushan Wen
f246bf2938
wallpapers/image: remove unused imports and member variables in `ImageBackend`
4 years ago
Fushan Wen
b4d3e5e01d
wallpapers/image: use `Package::fileUrl` in `findPreferredImageInPackage`
...
This drops a redundant conversion.
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
l10n daemon script
560b4ca52b
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
l10n daemon script
93f70563d8
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
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
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