-
Notifications
You must be signed in to change notification settings - Fork 111
Creating a custom color list for the GUI
Jeremy Sanders edited this page Nov 7, 2019
·
2 revisions
Note, this could break with any future changes in the Veusz system, but works as of v1.24.
Note this doesn't work in recent veusz versions, as you can change the default palette within the program in Edit->Custom Definitions->Colors. See https://github.com/veusz/veusz/issues/339
Using the plugin system of Veusz, one can customize the list of colors available within the GUI as desired. To do so, simply create a file such as the following, replacing the list of colors with any list you desire:
import veusz.setting
veusz.setting.Color._colors = [
'#4D4D4D',
'#F15854',
'#5DA5DA',
'#60BD68',
'#FAA43A',
'#F17CB0',
'#B2912F',
'#B276B2',
'#DECF3F',
]
veusz.setting.controls.Color._colors = veusz.setting.Color._colors
To load it into Veusz:
- Save this file (with a
.py
extension) somewhere on your machine - In Veusz, go to
Edit -> Preferences -> Plugins
- Click the
Add...
button, and select the file you saved in step 1. - Restart Veusz, and your custom color list should now be present: