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
18858d16d6
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
actually remove the notification on swipe
9 years ago
appmenu
Fix most obvious clazy and clang warnings
10 years ago
cmake
Clean up configure checks, none of the code here use PAM anymore.
10 years ago
components
[Session Model] Show new session entry only if we actually can
10 years ago
containmentactions
Restore filtering by current activity to the Switch Window action.
10 years ago
dataengines
[Notification Data Engine] Don't group notification if it should replace an existing one
10 years ago
doc
actually skip entries marked as hidden
10 years ago
drkonqi
[DrKonqi] Update URL to Wiki page on how to create useful bug reports
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
[klipper] Move notification from tray to Klipper
10 years ago
krunner
Fix most obvious clazy and clang warnings
10 years ago
ksmserver
[Logout Greeter] Add QtQuickSettings
9 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
Fix most obvious clazy and clang warnings
10 years ago
libkworkspace
Remove clearly outdated data about kactivitymanager dbus xml syncing
10 years ago
libtaskmanager
Fixed detection of the duplicate launchers
10 years ago
lookandfeel
Fix translation catalog by Victor
10 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
Fix most obvious clazy and clang warnings
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
Remove unused import QtGraphicalEffects
10 years ago
shell
Update screen pool connector ID ordering before adjusting desktop containments
10 years ago
solidautoeject
Properly define overrides as suggested by the c++ standard
10 years ago
soliduiserver
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
startkde
Fix kcminit phase 1 and 2
10 years ago
statusnotifierwatcher
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
systemmonitor
SVN_SILENT made messages (.desktop file) - always resolve ours
10 years ago
templates
SVN_SILENT made messages (.desktop file) - always resolve ours
9 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
Update version number for 5.8.3
9 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