ubuntu-mate / mate-tweak

Tweak tool for the MATE Desktop
GNU General Public License v2.0
71 stars 24 forks source link

Allow additional custom settings to be preserved #57

Closed etkeys closed 6 years ago

etkeys commented 6 years ago

Changes to support issue #56

Stored additional settings for the state of maximus decorate and window control layout in the tweak.layout file. If the user changed these settings and switched between layouts, the user settings would not be preserved. Now, new custom layouts will store these values and they will be read when they are loaded. Previous custom layouts will still function as they did before.

Changed naming scheme of new custom layouts to prefix file names with the "template" name (e.g. eleven, mutiny, etc). This was done because some settings, specifically the brisk menu, were still not preserved if the user switched layouts. There is still logic that certain settings are altered based on the file name. This naming scheme change makes this feature transparent to the user as the specific names are prefixed to the user custom file during the save process. Previous custom layouts will still function as they did before. I would actually like to work to find a better solution than this, but that would take more time to understand how the brisk menu integrates with the panels (future work).

Testing was done in 18.04 and cursory testing in 18.10

etkeys commented 6 years ago

Having thought about this for a day, I've realized that this commit log is ugly and I"m going to redo it. I'll resubmit a pull request tomorrow.