diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2017-03-17 19:08:20 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-03-17 19:10:05 +0300 |
commit | 2977a8cd2176997ab38dc4ba22db9b4029365aad (patch) | |
tree | 08277a4fd832e0b91793a9caa2af1cdedb80a230 /source/blender/editors/interface/resources.c | |
parent | a96008f3aae2b047ce777418e45eeae09e0ea4e6 (diff) |
Add tabs as standard button types
NOTE: This is really a backend-only implementation, nothing is changed in the UI
Adds a tab button-type and the basic drawing and handling code for it.
More work needs to be done on it, but idea is to get in ready for usage in the
topbar.
Differential Revision: https://developer.blender.org/D1371
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 89e7b60edbf..4ec535dc627 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -2871,7 +2871,23 @@ void init_userdef_do_versions(void) * (keep this block even if it becomes empty). */ { - + /* interface_widgets.c */ + struct uiWidgetColors wcol_tab = { + {255, 255, 255, 255}, + {83, 83, 83, 255}, + {114, 114, 114, 255}, + {90, 90, 90, 255}, + + {0, 0, 0, 255}, + {0, 0, 0, 255}, + + 0, + 0, 0 + }; + + for (bTheme *btheme = U.themes.first; btheme; btheme = btheme->next) { + btheme->tui.wcol_tab = wcol_tab; + } } if (U.pixelsize == 0.0f) |