-
-
Notifications
You must be signed in to change notification settings - Fork 37
Button Colour Customisation
Icon colour customisation is available only if you use Material menu layout.
To proceed, first make sure you are using Material menu layout.
Select "Material" from menu layout options as shown below:
Colour appearance of Material menu layout icons are controlled by the following configuration values.
materialIconMaskColor - Use this color for masking material icon.
maskBackground - Either mask background or foreground color of material icon. Set True to mask background color. Set False to mask foreground color.
pushButtonBackgroundColor - Push button background color in 'material' menu layout.
pushButtonForegroundColor - Push button foreground color in 'material' menu layout.
pushButtonBackgroundColorHover - Push button background color in 'material' menu layout, when a button is hovered.
pushButtonForegroundColorHover - Push button foreground color in 'material' menu layout, when a button is hovered.
pushButtonBackgroundColorPressed - Push button background color in 'material' menu layout, when a button is pressed.
pushButtonForegroundColorPressed - Push button foreground color in 'material' menu layout, when a button is pressed.
To make a colour change, you need to edit the configuration file, UniqueBible/config.py.
-
Make sure you quit UniqueBible app first before you edit the configuration file "config.py".
-
Locate the following default values in the file "config.py"
materialIconMaskColor = '#e7e7e7'
maskBackground = True
pushButtonBackgroundColor = '#e7e7e7'
pushButtonForegroundColor = 'black'
pushButtonBackgroundColorHover = '#f8f8a0'
pushButtonForegroundColorHover = 'black'
pushButtonBackgroundColorPressed = '#a2a934'
pushButtonForegroundColorPressed = 'white'
- The following modification changes the icon background colour to black and foreground colour to red:
materialIconMaskColor = 'red'
maskBackground = False
pushButtonBackgroundColor = 'black'
pushButtonForegroundColor = 'red'
You can edit the settings via a GUI dialog available in Material menu layout:
UniqueBible > UBA Preferences > General > Button Colour Customisation
Select the button on the left side to change each colour setting.
You can select a colour simply with a mouse click or enter manually if you know actually what you want.
An example of changing colours with GUI dialog.