Commit Graph

673 Commits

Author SHA1 Message Date
Campbell Barton
bdc1108e8c Cleanup: remove unused context arg to menu 2018-06-30 12:31:53 +02:00
Campbell Barton
25b7bdb6a9 Merge branch 'master' into blender2.8 2018-06-30 09:29:38 +02:00
Brecht Van Lommel
728e92422e Fix T54524: keyframe and driver colors not showing in shape key list.
This reverts commit 357b72e0a7 which caused
the issue, we need a better fix for that cosmetic issue from T50862. For
now displaying keyframes and drivers is the more important one.
2018-06-29 21:23:13 +02:00
Brecht Van Lommel
3aa61499d0 Fix unnecessary empty space in shading popover. 2018-06-29 17:58:58 +02:00
Brecht Van Lommel
e69e62a90a UI: decrease status bar height. 2018-06-26 17:15:43 +02:00
Campbell Barton
29182dd570 Cleanup: style 2018-06-26 08:35:35 +02:00
Campbell Barton
861b0ec417 UI: Right align check-box for extra text space
See: T54951
2018-06-25 12:06:51 +02:00
Campbell Barton
762dec21f6 UI: decorators hid non-array buttons
Error in last commit.
2018-06-18 15:50:21 +02:00
Campbell Barton
55623368b4 UI: decorators weren't showing icon-only buttons 2018-06-18 15:11:10 +02:00
Campbell Barton
b2f0803b5b Fix T55511: Decorator drag makes many undo steps
Each keyframe made a separate undo step.
2018-06-18 08:25:05 +02:00
Campbell Barton
a794da5200 Fix T55517: Property-split fails w/ expanded enum 2018-06-18 08:05:46 +02:00
Campbell Barton
e960920f2f UI: decorator color button assert
Also set 'all' argument based on the RNA-index
(even though it worked, better set to correct value).
2018-06-17 12:15:32 +02:00
Campbell Barton
0a8e6b48c4 Correct assert in recent changes 2018-06-16 17:31:37 +02:00
Campbell Barton
3cf239ccfa UI: support dragging to key-frame 2018-06-16 16:29:05 +02:00
Campbell Barton
d8c2c63c00 UI: Add property decorator buttons
When use_property_split is enabled, this template adds
buttons to set keyframes, (Alternative to showing color).

See: T54951
2018-06-16 16:28:42 +02:00
Bastien Montagne
5b6ae0523e Merge branch 'master' into blender2.8 2018-06-15 17:25:41 +02:00
Bastien Montagne
da9b1b14ed Cleanup: some more G.main removal/validation... 2018-06-15 17:21:07 +02:00
Campbell Barton
51f1ed8221 Cleanup: style 2018-06-14 22:44:53 +02:00
Campbell Barton
ca7a93953a Error in recent popover width 2018-06-13 11:57:52 +02:00
Campbell Barton
e4ab04b8bb Fix pop-over buttons always getting space for icon 2018-06-13 11:22:15 +02:00
Campbell Barton
2a5d4d7573 Merge branch 'master' into blender2.8 2018-06-13 11:11:23 +02:00
Campbell Barton
5788f24337 Cleanup: swapped X/Y UI_UNIT 2018-06-13 11:10:55 +02:00
Dalai Felinto
070830c62d Fix separator element for headers with multiple directions 2018-06-11 14:54:04 +02:00
Dalai Felinto
d90fc119c2 UI: Separator spacer
This support layout.separator_spacer() to be used by headers as a way to
dynamically separate the ui buttons.

Right now no UI file is changed, though we can use this right away in the
timeline, and shortly after in the viewport header (moving settings from
the topbar to it).

Original design by William Reynish.

Review: Campbell Barton
D3468
2018-06-11 14:46:35 +02:00
Campbell Barton
45a5ddb57b Merge branch 'master' into blender2.8 2018-06-09 18:58:14 +02:00
Campbell Barton
2e14b7fb97 RNA: remove Layout.introspect
This was added as an experiment to extract information for docs
but this was never all that useful for its intended purpose.
2018-06-09 18:55:51 +02:00
Campbell Barton
726ed7244e UI: always show popover subpanel header text 2018-06-09 18:15:08 +02:00
Campbell Barton
2ae404252d UI: fix popover subpanel header display 2018-06-09 18:03:22 +02:00
Campbell Barton
7fdde7fd86 UI: use draw_header function for popover buttons
Add 'is_popover' for panel draw functions to check if they're in a popup.
This puts dyntopo toggle next to the popover.
2018-06-09 17:38:32 +02:00
Bastien Montagne
ec8a20fec0 Add new GridFlow layout.
This mimics the 'spreadsheet' behavior. Columns and/or rows can have
equal sizes, or adapt to their content - but always in a grid way (i.e.
all items in a same column will always have same available width, and
all items in a same row will always have same available height).
Also, you can fill (order) the grid in a row- or column-major way.

Not used anywhere for now.

Differential: https://developer.blender.org/D2395
2018-06-09 16:54:26 +02:00
Campbell Barton
09ce794dc8 UI: initial support for parent panels in popovers
Currently this just includes the panels, no support for collapsing yet.
2018-06-09 14:21:39 +02:00
Campbell Barton
80d86f303a UI: support property split for 'prop_search' 2018-06-05 08:56:14 +02:00
Campbell Barton
82b8fd8eaf UI: don't show XYZ text w/ direction buttons 2018-06-01 14:10:43 +02:00
Campbell Barton
1f693aefca Cleanup: style/whitespace
Also use 'uint'.
2018-05-30 19:49:33 +02:00
Campbell Barton
efd0333a9c UI: fix property split w/ color buttons & empty text 2018-05-30 17:29:20 +02:00
Campbell Barton
1d320f10ac UI: Option to layout properties in two columns
Needed for proposed alternate layout, see T54951.
2018-05-28 16:49:30 +02:00
Campbell Barton
47f2b3b80d Merge branch 'master' into blender2.8 2018-05-27 12:54:21 +02:00
Campbell Barton
56254a42e0 UI: replace BLI_strncpy w/ memcpy
Size is already checked.
2018-05-27 12:50:03 +02:00
Campbell Barton
5901c1ca42 UI: fix event handling direction
Correct arrow key direction in popovers,
also de-duplicate menu callback,
2018-05-25 15:47:12 +02:00
Campbell Barton
e9908134e8 UI: Move UI_paneltype_draw into layout code
No functional changes, needed for persistent popovers.
2018-05-25 12:55:22 +02:00
Campbell Barton
933a083587 UI: popup panel operator, as we have for menus 2018-05-23 19:48:28 +02:00
Campbell Barton
e92baab348 Merge branch 'master' into blender2.8 2018-05-23 10:51:11 +02:00
Campbell Barton
d886e32270 Cleanup: strip trailing space from interface files 2018-05-23 10:48:50 +02:00
Brecht Van Lommel
7a2e271e54 Fix compiler warnings. 2018-05-13 14:48:55 +02:00
Brecht Van Lommel
3469e623d3 UI/Python: layout API support for setting button emboss style. 2018-05-13 13:44:49 +02:00
Brecht Van Lommel
343c2e94f5 Cleanup: deduplicate layout item initialization. 2018-05-13 12:48:51 +02:00
Campbell Barton
06a786f12d UI: show toolbar shortcuts
When toobar text is expanded, show shortcuts
(normally confined to menus).
2018-05-13 10:27:44 +02:00
Brecht Van Lommel
6d980020ba UI: experiment to make popover buttons draw like enum menus.
Looks better for 3D viewport shading, but needs more tweaks to distinguish
it from other button types probably.
2018-05-05 15:54:43 +02:00
Campbell Barton
2bc9396b55 UI: disable popovers when panel poll fails 2018-05-02 11:03:03 +02:00
Campbell Barton
970cf6f765 UI: use the layouts scale_x to scale icon width 2018-04-27 20:03:43 +02:00