Skip to content

Commit

Permalink
- fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar committed Nov 23, 2019
1 parent 0c80fd9 commit 6d9cc10
Show file tree
Hide file tree
Showing 19 changed files with 47 additions and 2 deletions.
Binary file added docs/source/_static/button_colour_parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/label_colour_parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ source, navigating to the project's directory (the one with setup.py in it) and
.. code-block:: console
python setup.py install
pip install . -U
Source code on GitHub
Expand Down
6 changes: 6 additions & 0 deletions docs/source/theme_reference/theme_button.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ The :class:`UIButton <.UIButton>` theming block id is 'button'.
Colours
-------

.. figure:: ../_static/button_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter. This correspondence is the same for the
parameters named for the different button states e.g. the parameter 'hovered_bg' themes the same area as 'normal_bg'
when the button is in the hovered state.

:class:`UIButton <.UIButton>` makes use of these colour parameters in a 'colours' block. All of these colours can
also be a colour gradient:

Expand Down
6 changes: 6 additions & 0 deletions docs/source/theme_reference/theme_drop_down_menu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ The :class:`UIDropDownMenu <.UIDropDownMenu>` theming block id is 'drop_down_men
Colours
-------

.. figure:: ../_static/drop_down_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter. In the drop down menu it will only be
possible to see the 'dark_bg' themed regions when the buttons in the menu are themed to be transparent, or semi
transparent themselves.

:class:`UIDropDownMenu <.UIDropDownMenu>` makes use of these colour parameters in a 'colours' block. All of these colours can
also be a colour gradient:

Expand Down
5 changes: 5 additions & 0 deletions docs/source/theme_reference/theme_horizontal_slider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ The :class:`UIHorizontalSlider <.UIHorizontalSlider>` theming block id is 'horiz
Colours
-------

.. figure:: ../_static/horizontal_slider_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter. The slider's buttons are themed in a
separate block.

:class:`UIHorizontalSlider <.UIHorizontalSlider>` makes use of these colour parameters in a 'colours' block. All of these colours can
also be a colour gradient:

Expand Down
5 changes: 5 additions & 0 deletions docs/source/theme_reference/theme_label.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ The :class:`UILabel <.UILabel>` theming block id is 'label'.
Colours
-------

.. figure:: ../_static/label_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter. The text shadow **cannot** be themed
with a colour gradient.

:class:`UILabel <.UILabel>` makes use of these colour parameters in a 'colours' block. Most of these colours can
also be a colour gradient:

Expand Down
7 changes: 5 additions & 2 deletions docs/source/theme_reference/theme_screen_space_health_bar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ The :class:`UIScreenSpaceHealthBar <.UIScreenSpaceHealthBar>` theming block id i
Colours
-------

.. figure:: ../_static/screen_space_health_bar_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter. The text shadow **cannot** be themed
with a colour gradient.

:class:`UIScreenSpaceHealthBar <.UIScreenSpaceHealthBar>` makes use of these colour parameters in a 'colours' block. Most of these colours can
also be a colour gradient:

- "**normal_bg**" - The background colour/gradient of the health bar.
- "**normal_text**" - The colour/gradient of the health bars's text.
- "**text_shadow**" - The colour of the shadow behind the text (so it stands out better).
- "**normal_border**" - The colour/gradient of the border around the health bar.
Expand Down Expand Up @@ -67,7 +71,6 @@ Here is an example of a screen space health bar block in a JSON theme file using
{
"colours":
{
"normal_bg": "#25292e",
"normal_text": "#c5cbd8",
"text_shadow": "#777777",
"border": "#DDDDDD",
Expand Down
6 changes: 6 additions & 0 deletions docs/source/theme_reference/theme_text_box.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ The :class:`UITextBox <.UITextBox>` theming block id is 'text_box'.
Colours
-------

.. figure:: ../_static/text_box_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter. This correspondence is the same for the
parameters named for the different link states e.g. the parameter 'link_hover' themes the same text as 'link_text'
when the link is in the hovered state.

:class:`UITextBox <.UITextBox>` makes use of these colour parameters in a 'colours' block. All of these colours can
also be a colour gradient:

Expand Down
4 changes: 4 additions & 0 deletions docs/source/theme_reference/theme_text_entry_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ The :class:`UITextEntryLine <.UITextEntryLine>` theming block id is 'text_entry_
Colours
-------

.. figure:: ../_static/text_entry_line_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter.

:class:`UITextEntryLine <.UITextEntryLine>` makes use of these colour parameters in a 'colours' block. All of these colours can
also be a colour gradient:

Expand Down
5 changes: 5 additions & 0 deletions docs/source/theme_reference/theme_vertical_scroll_bar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ The :class:`UIVerticalScrollBar <.UIVerticalScrollBar>` theming block id is 'ver
Colours
-------

.. figure:: ../_static/vertical_scroll_bar_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter. The scroll bar's buttons are themed in a
separate block.

:class:`UIVerticalScrollBar <.UIVerticalScrollBar>` makes use of these colour parameters in a 'colours' block. All of these colours can
also be a colour gradient:

Expand Down
4 changes: 4 additions & 0 deletions docs/source/theme_reference/theme_world_space_health_bar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The :class:`UIWorldSpaceHealthBar <.UIWorldSpaceHealthBar>` theming block id is
Colours
-------

.. figure:: ../_static/world_space_health_bar_colour_parameters.png

A diagram of which part of the element is themed by which colour parameter.

:class:`UIWorldSpaceHealthBar <.UIWorldSpaceHealthBar>` makes use of these colour parameters in a 'colours' block:

- "**normal_border**" - The colour/gradient of the health bar's border if it has one.
Expand Down

0 comments on commit 6d9cc10

Please sign in to comment.