Skip to content

Customise Interface Colours

Eliran Wong edited this page May 10, 2022 · 17 revisions

Switch to Material Menu Layout FIRST

Our latest Material menu layout supports colour customisation. To proceed, switch to Material menu layout first.

Read for instructions about switching at:

https://github.com/eliranwong/UniqueBible/wiki/Material-Menu-Layout#switch-to-material-menu-layout

Themes

Select a theme to set an overall colour tone. Read about themes at:

https://github.com/eliranwong/UniqueBible/wiki/Themes

Further Colour Customisation

With Material menu layout, further Colour Customisation is possible, in addition to theme selection. Below is a brief description.

Basics

Colour appearance of Material menu layout icons are controlled by the following configuration values.

widgetBackgroundColor - Widget background color in 'material' menu layout.

widgetForegroundColor - Widget foreground color in 'material' menu layout.

widgetBackgroundColorHover - Widget background color when a widget is hovered in 'material' menu layout.

widgetForegroundColorHover - Widget foreground color when a widget is hovered in 'material' menu layout.

widgetBackgroundColorPressed - Widget background color when a widget is pressed in 'material' menu layout.

widgetForegroundColorPressed - Widget foreground color when a widget is pressed in 'material' menu layout.

maskMaterialIconBackground - config.maskMaterialIconColor applies to either background or foreground of material icons. Set it to True to apply the mask to background. Set it to False to apply the mask to foreground.

maskMaterialIconBackground - Use this color for masking material icons.

Manual Modification

You can edit the configuration values manually.

  1. Exit UBA first, and make sure UBA is not running when you edit configuration values.

  2. Use a text editor to edit values in file UniqueBible/config.py, for example:

materialIconMaskColor = 'red'
maskBackground = False
pushButtonBackgroundColor = 'black'
pushButtonForegroundColor = 'red'

  1. Start UBA and you should see the values above give you the following result.
Screenshot 2022-04-27 at 21 41 24

Customise Colour with GUI Dialog

Even you can edit config.py manually, we recommend you to use GUI dialog instead.

  1. To open the GUI dialog for colour customisation, open from menu: UniqueBible > Appearance > Customise Colour
Screenshot 2022-05-10 at 13 53 35
  1. Click on button on the left column to start editing individual values.

  2. With Colour Picker dialog, you can either manually enter a value or use a mouse click to select a colour.

Screenshot 2022-05-10 at 13 55 04

You may check colour codes at https://htmlcolorcodes.com/color-names/ if you want do manual entries.

Screenshots

Screenshot 2022-05-10 at 14 21 14 Screenshot 2022-05-10 at 14 19 52 Screenshot 2022-05-10 at 14 18 39
Clone this wiki locally