You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Antonio Larrosa
c309f1eaeb
Modified distance function to keep aspect ratio as close as possible
...
Summary:
This new version of the distance function simplifies the
findPreferredImageInPackage method by using the aspect ratio in the
calculation. Now, it won't only search for a wallpaper with the same
aspect ratio, but will also choose one with the closest possible
aspect ratio when a perfect match is not found.
Also, I separated the method that chooses the preferred image
to not use KPackage in order to use it from a test application
that tests the distance algorithm with all possible resolutions.
Test application that tests the Image::findPreferredImage method
The test initializes a list of available wallpaper image sizes,
then a list of screen resolutions, and then executes
Image::findPreferredImage to find out which is the preferred image
in each case.
Test Plan:
I tested with different screen resolutions on a virtual machine with
openSUSE Leap 42.2 RC1 and also included a commit that adds a test
application (not built by default) that tests all possible resolutions.
Reviewers: #plasma, mart
Reviewed By: mart
Subscribers: mart, plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D3188
9 years ago
applets
Support drags from Widget Explorer onto System Tray
10 years ago
appmenu
Merge branch 'Plasma/5.8'
10 years ago
cmake
Clean up configure checks, none of the code here use PAM anymore.
10 years ago
components
Make special filters optional.
10 years ago
containmentactions
Restore filtering by current activity to the Switch Window action.
10 years ago
dataengines
systemmonitor: Optimise source updates.
10 years ago
doc
Update screenlocker docbook
10 years ago
drkonqi
Merge branch 'Plasma/5.8'
10 years ago
freespacenotifier
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
kioslave
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
klipper
Merge branch 'Plasma/5.8'
10 years ago
krunner
[krunner] Make KRunner on Wayland a Panel
10 years ago
ksmserver
Merge branch 'Plasma/5.8'
10 years ago
ksplash
Handle Qt::InfoMsg in switch
10 years ago
ktimezoned
Properly define overrides as suggested by the c++ standard
10 years ago
kuiserver
kuiserver: remove manual override for debug output
10 years ago
libkworkspace
Remove clearly outdated data about kactivitymanager dbus xml syncing
10 years ago
libtaskmanager
Disable starting kactivitymanagerd throughout launchertasksmodeltest
9 years ago
lookandfeel
[Lock Screen] Don't assume last user is "New Session" entry
9 years ago
menu
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
phonon
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
plasma-windowed
Port to new plasma-framework API
10 years ago
plasmacalendarintegration
[Plasma Calendar Integration] Filter holiday regions case-insensitively
10 years ago
runners
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
sddm-theme
Merge remote-tracking branch 'origin/Plasma/5.8'
10 years ago
shell
Make sure we're looking both for json and desktop metadata
10 years ago
solidautoeject
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
soliduiserver
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
startkde
Start KDE Cleanups
10 years ago
statusnotifierwatcher
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
systemmonitor
warnings--
10 years ago
templates
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
themes
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
wallpapers
Modified distance function to keep aspect ratio as close as possible
9 years ago
xembed-sni-proxy
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
.arcconfig
Add .arcconfig
10 years ago
.reviewboardrc
…
CMakeLists.txt
Make KF5Baloo optional
10 years ago
COPYING
…
COPYING.DOC
…
COPYING.LIB
…
ConfigureChecks.cmake
Clean up configure checks, none of the code here use PAM anymore.
10 years ago
ExtraDesktop.sh
i18n: handle strings in kdevtemplate files
10 years ago
HACKING
…
Mainpage.dox
…
config-X11.h.cmake
Clean up dependencies after removal of the screenlocker
11 years ago
config-unix.h.cmake
Clean up configure checks, none of the code here use PAM anymore.
10 years ago
config-workspace.h.cmake
Clean up dependencies after removal of the screenlocker
11 years ago
plasma.desktop.cmake
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
plasmawayland.desktop.cmake
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago