6 Commits

Author SHA1 Message Date
Alexander Lohnau
64862e4312 Remove deprecated and defunct KNewStuff properties 2021-07-03 17:30:10 +02:00
Alexander Lohnau
8936b4db46 Port away from deprecated KNSCore::DownloadManager
We can just remove the files on disk and with the RemoveDeadEntries
option set to true KNS will check if the files still exist. If
not the entry will be marked as not installed.
2021-02-02 13:35:10 +00:00
Kurt Hindenburg
9babfb2efe Re-add correct ProvidersUrl; needed for non-Plasma systems per ml 2020-01-31 21:09:43 -05:00
Kurt Hindenburg
048edf7395 Remove default ProvidersUrl to use KNewStuff's default
See https://marc.info/?l=kde-core-devel&m=158037601132219&w=2 and
https://marc.info/?l=kde-core-devel&m=158038883603886&w=2
2020-01-30 08:08:47 -05:00
Kurt Hindenburg
d801b2d015 Uncompress any colorscheme archive downloaded from KNewStuff store
For example, Apu's theme is a tar.gz which would not work before.
2018-12-30 14:25:07 -05:00
Harald Sitter
97d9ed9436 add knewstuff support for color schemes
Summary:
schemes are supplied by `Konsole Color Scheme` category on store.kde.org

https://store.kde.org/p/1216368/

- new manager helpers to unload a theme and check a file's name validity
- new Get New.. button to start the KNS download dialog
- upon KNS completion we'll attempt to load all installed files as schemes
- for KNS entities which failed to load anything we'll show a warning as
  the theme is malformed
- for removal we'll first try to remove schemes through KNS to avoid its
  registry going out of sync with the on-disk "installedness" of an entity
- properly disable copying of the scheme manager (needs to be private)

FEATURE: 18.04.0
CHANGELOG: Support for downloading color schemes from the KDE store

Test Plan:
category is T8053 (can also use `KDE Color Scheme KDE4` for testing)

- get new -> install scheme -> close -> shows up in list
- remove from list -> get new -> not listed as installed
- install random stuff from kde color scheme category -> close ->
  warning should be displayed
- install scheme -> get new -> remove scheme via dialog -> close ->
  not listed as installed

Reviewers: hindenburg

Subscribers: #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D10766
2018-02-28 10:49:10 +01:00