Bug 377961 - hint-tile-center does not work in Plasma desktopthemes
Summary: hint-tile-center does not work in Plasma desktopthemes
Status: RESOLVED WORKSFORME
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (show other bugs)
Version: 5.26.0
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-22 22:07 UTC by Ian Smith
Modified: 2017-03-27 09:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Smith 2017-03-22 22:07:25 UTC
The hint-tile-center option has stopped working, at least in the translucent panel-background.svgz and the standard widget background.svgz. It may well not work in other widget backgrounds, but these are the two I have tried.

It is worth noting that in the tutorial https://techbase.kde.org/Development/Tutorials/Plasma5/ThemeDetails hint-tile-center is still discussed.

Reproducible: Always

Steps to Reproduce:
1. Copy one of the standard themes to .local/share/plasma/desktoptheme/
2. Edit metadata.desktop: change the name of the theme so that it is identifiable in System Settings.
3. Edit widgets/background.svgz:
    a) locate the object with id="center"
    b) use the fill and stroke tool to give the object a gradient (if "center" is a group object, it will be necessary to make the gradient on one of the group's members).
    c) if there is not already an object called hint-tile-center, duplicate one of the other hint objects, (e.g."hint-stretch-borders") and change the id to hint-tile-center.
    d) save the file.
4. Open System Settings>Workspace Theme>Desktop Theme
5. Select the theme that was renamed in step 2.
6. Click "Apply".

Actual Results:  
Widgets such as Folderviews, Network Monitor and Thermal Monitor will display the background stretched across the entire widget.

Expected Results:  
The background should be tiled across the widgets.

Using a gradient is a simple example to demonstrate the bug. I have also obtained similar results using a freehand path within the center group.
Comment 1 Marco Martin 2017-03-24 13:18:45 UTC
can't reproduce, tiling is fine.
make sure you removed the cache at ~/.cache/plasma*
Comment 2 Ian Smith 2017-03-26 06:12:07 UTC
Thanks for the feedback and advice Marco; however removing the caches had no effect for me.

Could you let me know which standard theme you used as a base to modify, and I will try that?

Also, I'm wondering if it could be an OpenSuse problem. I am on Leap 42.2.
Comment 3 Marco Martin 2017-03-27 09:00:11 UTC
I tried with widgets/background.svgz, making the center tile (and add a little colored square in the center element to visually check)
there is no difference between theme elements, if it works in one, it works in all of them.