Fushan Wen
eb3483123e
wallpapers/image: fix wrong usage of `std::bind`
...
`m_virtualDesktopInfo->currentDesktop()` will be regarded as a static
value in `std::bind`, which prevents the current desktop from being
updated, so use lambda instead.
BUG: 459199
FIXED-IN: 5.26
4 years ago
Nate Graham
fe9f664963
wallpapers/slideshowpackage: fix tooltip so it actually appears
...
We had disabled hover on the list item, so it would never become
visible. In addition, its visibility condition was wrong as we only want
it to become visible for list items that have elided text.
BUG: 459052
FIXED-IN: 5.26
4 years ago
Nate Graham
c67f90a358
wallpapers/slideshowpackage: use common values for tooltip delay and timeout
4 years ago
Nate Graham
f24ab58847
wallpapers/slideshowpackage: qualify overlayWidth's origin
...
This improves code comprehensibility and will be required in Qt 6.
4 years ago
l10n daemon script
2041c59aa1
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
Volker Krause
516d2b9733
Change wallpaper enums to be in namespaces rather than in gadgets
...
Qt 6 no longer allows exporting gadgets with an uppercase name. Namespaces
work just as well here, but we unfortunately have this problem also in
other places where the solution is less straightforward.
4 years ago
Fushan Wen
51107d9ab4
wallpapers/image: add current image to list if it's not in list
...
The current wallpaper image can be set by a Plasma script. In that case,
the wallpaper is not added to the list, so also check the current image
is already added after opening the config dialog.
BUG: 458364
FIXED-IN: 5.26
4 years ago
l10n daemon script
d72310322f
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
1428eac1d1
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
0e06391396
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
0064f7185c
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
Nicolas Fella
dca68cb9a2
Install wallpaper servicemenu to new location
4 years ago
Jin Liu
01defdb573
wallpaper/slideshow: shouldn't display "current" item in image list
...
In the config dialog of slideshow wallpaper, the first image is always in a "current selected" state (thick, deep blue border). And it can't change with neither mouse click or keyboard.
Slideshow has no such thing as "current", so this effect should be removed.
BUG: 457327

4 years ago
Alexander Lohnau
a459530c85
Convert metadata.desktop file of tests to json
4 years ago
Fushan Wen
cad08926cc
wallpapers/image: try to extract image metadata if available
...
Currently title, author and resolution are extracted.
4 years ago
Volker Krause
0e5dae1067
Fix Qt6 build regressions
4 years ago
Nicolas Fella
5c3cb86733
Add missing include
4 years ago
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