Σελίδες

Monday 20 December 2021

Latte Dock | Plasma LookNFeel support


https://phabricator.kde.org/source/latte-dock/

Hello everyone,

As the title implies from now on Plasma LookNFeel packages can contain and apply Latte Layouts. What that means is that distros and designers can include their latte layouts inside their own Plasma LookNFeel package and Plasma will auto adjust everything in order to load or unload the latte layout. The relevant approved merged reguest can be found here.
 
 
Requirements
 
For this to work you need:
  • Latte Dock >= 0.10.6
  • Plasma Desktop >= 5.24.0
 
 
Users
 
From users point of view only thing needed is:
  • Go to Plasma SystemSettings → Appearance → Global Theme
  • Install your Plasma LookNFeel package
  • Check option "Use desktop layout from theme"
  • Apply it in your system.
 
What will happen is that Latte will automatically switch to the provided layout. In case the looknfeel package does not contain any latte layout then we can guess that Latte is not needed and for that reason is closed. You can of course restart Latte afterwards if you want to.

The Latte approach is pretty safe concerning your data and your layouts. When you apply a new layout through LookNFeel packages then your current latte layout is not removed or touched at all, it just remains inactive with the same name and you can reenable it whenever you want to from Latte Layouts Editor.



Designers / Distros
 
To include your latte layout file in your looknfeel package you can do the following:
  • Export your latte layout through: Right click Dock → Layouts Edit Layouts... Choose your favorite layout Export Export As Template...
  • Rename the exported layout file to : looknfeel.layout.latte
  • Include your looknfeel.layout.latte file inside the layouts folder of your looknfeel package
  • you are ready...
 
If you want to autodownload Latte Indicators through you LookNFeel packages like you do for your qml applets, icon themes etc. you can do so but you will need at least Latte 0.11.0 for this to work properly. You can reference your custom online latte indicators with:
  •  X-KPackage-Dependencies=kns://latte-indicators.knsrc/api.kde-look.org/1297196
    [unity latte indicator case]
 
 
Donations

You can find Latte at Liberapay,     Donate using Liberapay


or you can split your donation between my active projects in kde store.
-----
 
* archive has been signed with gpg key: 325E 97C3 2E60 1F5D 4EAD CF3A 5599 9050 A2D9 110E