Commit Graph

565 Commits

Author SHA1 Message Date
Campbell Barton
40f2afcf1d Cleanup: remove contributors for Python files
Following removal from C source code.

See: 8c68ed6df16d8893
2019-02-05 09:17:00 +11:00
9a63fa21eb Color management: change view transform for color pickers and display modes.
* Use simple default view transform for color pickers, as Filmic does not work
  well for all types of colors. We better handle this with an option and tagging
  of colors as emissive or albedo like.
* For solid/workbench we also no longer use Filmic, as there is not enough contrast
  and it's not really needed since this is not physically based lighting.
* For lookdev always take into account the view transform and look. Other view
  settings like exposure are only taken into account if scene lighting is used,
  since these are often dependent on scene light intensity.

Fixes T61022, T57649, T59363.
2019-02-01 20:56:42 +01:00
Howard Trickey
79f76c8544 Bevel - better corner shapes for inner arc miters.
The subdivision method for getting corner shapes has a fullness
parameter which had been set by eye before. This change uses fullness
as found by offline search process to best match the superellipsoid
octant in the cube corner case (except cube corner case is still handled
by other code). This somewhat improves the look of cube corners with
inner arc miters, however.
2019-01-29 07:21:59 -05:00
Campbell Barton
7f77961f1c Fix theme color use for clipping region
Color needed to be converted to linear in the engine,
not the theme.
2019-01-24 10:36:46 +11:00
Campbell Barton
48eed058b1 3D View: draw clipping region
Only for workbench solid/wire modes.
2019-01-23 23:37:25 +11:00
Campbell Barton
5c6d5cb863 Fix background color use in 3D view
TH_BACK was being used when drawing the 3D view even though
there was no way to set the color in the preferences.

The color was zero'd when moving to the new 2.8x theme.

Having both gradient and background colors was confusing,
especially having to use 'TH_HIGH_GRAD' for the 3D view, 'TH_BACK' for
other views.

Move the background color back to 'TH_BACK', 'TH_BACK_GRAD' is used
when gradients are enabled.
RNA is unchanged so presets don't need updating.
2019-01-11 12:59:19 +11:00
Howard Trickey
b786416106 Fix T59151 Bevel modifier has bad input width for percent.
The units scaling was inappropriate when the bevel value was
to be interpreted as a percent, so added a separate rna property
for "Width Percent" and made UI show the width appropriate for
current offset_type.
2019-01-07 07:29:54 -05:00
Severin
a77b63c569 UI: Preferences Redesign Part 2
(Part 1 was 00963afc14978b)

Does the following changes visible to users:
* Use panels and sub-panels for more structured & logical grouping
* Re-organized options more logically than before (see images in D4148)
* Use flow layout (single column by default).
* New layout uses horizontal margin if there's enough space.
* Change size of Preferences window to suit new layout.
* Move keymap related options from "Input" into own section.
* Own, left-bottom aligned region for Save Preferences button.
* Adjustments of names, tooltips & icons.
* Move buttons from header into the main region (except editor switch).
* Hide Preferences header when opened in temporary window.
* Use full area width for header.
* Don't use slider but regular number widget for UI scale.
* Gray out animation player path option if player isn't "Custom"

Internal changes:
* Rearrange RNA properties to match changed UI structure.
* Introduces new "EXECUTE" region type, see reasoning in D3982.
* Changes to panel layout and AZone code for dynamic panel region.
* Bumps subversion and does versioning for new regions.

RNA changes are documented in the release notes:
https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Preferences_API

Design & implementation mostly done by @billreynish and myself.
I recommend checking out the screenshots posted by William:
https://developer.blender.org/D4148#93787

Reviewed By: brecht

Maniphest Tasks: T54115

Differential Revision: https://developer.blender.org/D4148
2019-01-04 22:18:23 +01:00
Howard Trickey
aef01c47e6 Fix T58113 Multiple problems with bevel harden normals.
Move the bevel hardening code all into bmesh_bevel.c.
Based on user feedback, rewrote the bevel hardening algorithm
to be more what users want.
Based on user feedback, changed the UI, removing some
not-useful options. Now hardening normals while beveling
is enabled by a simple checkbox.
Now setting face strength gives options for which faces
get their face strength set.
2019-01-03 13:39:52 -05:00
c1d82e5849 Templates: tweaks to startup templates.
* 2D Animation: lots of changes from the grease pencil team. Properties
  editor layouts, brush and material settings, and more.
* 3D Viewport: wireframes set to 1.0.
* World: use nodes by default.
* Node Editor: use narrow toolbar.
2018-12-31 16:26:22 +01:00
e9df155d53 Viewport: update default set of HDR images.
Add city, courtyard and interior HDRs. Replace grass field and night
HDR with different images.

Command used for compression:
oiiotool %s --resize 1024x512 --ch R,G,B -d float --compression dwab:300 -o output/%s
2018-12-31 15:40:42 +01:00
fbbbb3be55 Cleanup: remove unused camera studio lights. 2018-12-31 15:40:42 +01:00
William Reynish
27619d7271 UI: icon set updates by Andrzej Ambroz. 2018-12-31 13:52:45 +01:00
5216dd5fce Merge branch 'blender2.7' 2018-12-27 10:53:02 +01:00
Bastien Montagne
2c0c1f494d Point locale sub-repo to blender2.7 branch.
Since we start translating for 2.8 very soon, better to archive 2.7x
translations in their own branch. ;)
2018-12-22 15:10:24 +01:00
Campbell Barton
c4ee77cde8 Fix T59626: Outliner rename overlaps icons
Fix for T59219 was using low alpha-light grey for text background
so editing text would always be slightly brighter then the existing
background.

This causes outliner rename to have low alpha making text overlap
icons.

Use solid color to avoid issues with overlapping UI
elements in the future.
2018-12-20 09:13:42 +11:00
Sergey Sharybin
cef41d0144 Fix T59496: Movie Clip Editor does not display metadata 2018-12-18 12:28:44 +01:00
Charlie Jolly
c733062d27 GP: Primitive: Add curve tool icon
Thanks @billrey
2018-12-16 14:20:05 +00:00
Campbell Barton
f4c70a35a2 UI: tweak text editing fields for higher contrast
By default the text button background color was a similar brightness
to the cursor, making it hard to see at times.

Button types number/slider/text background brightness when editing
varied quite a lot too.

- Change the background while editing to match the number button.
- Darken the selection for greater contrast.

Resolves T59219
2018-12-14 15:09:32 +11:00
6601a89650 Fix T58549, T56741: HSV color picker issues with Filmic view transform.
In 2d655d3 the color picker was changed to use display space HSV values.
This works ok for a simple sRGB EOTF, but fails with view transforms like
Filmic where display space V 1.0 maps to RGB 16.292.

Instead we now use the color_picking role from the OCIO config when
converting from RGB to HSV in the color picker. This role is set to sRGB
in the default OCIO config.

This color space fits the following requirements:

* It is approximately perceptually linear, so that the HSV numbers and
  the HSV cube/circle have an intuitive distribution.
* It has the same gamut as the scene linear color space.
* Color picking values 0..1 map to scene linear values in the 0..1 range,
  so that picked albedo values are energy conserving.
2018-12-13 19:25:45 +01:00
Lukas Stockner
e79bb957fc User Interface: Add button color for indicating that the value differs from the interpolated one
One issue that especially newer users often run into is that they accidentally reset changes to the scene by switching frame without creating a keyframe first.

Therefore, this commit adds a new color that is used to draw properties if their current value differs from the one that would be set when switching to this frame.
This works both for existing keyframes as well as for currently interpolated frames.

Unfortunately the flags in but->flag are full, so I had to move the new flag to but->drawflag and pass that to all relevant functions.

I went with orange for the color since afaics it fits with the green and yellow that are currently used for keyframe states and since it's somewhat reddish to signify that there might be something to look out for here.

Reviewers: campbellbarton, #user_interface, brecht

Reviewed By: campbellbarton

Subscribers: brecht, predoe

Differential Revision: https://developer.blender.org/D3949
2018-12-08 18:06:23 +01:00
Charlie Jolly
21de125657 GP: Add icon for Arc primitive 2018-12-05 16:03:48 +00:00
William Reynish
679b156756 Icons: uv-sculpt 2018-11-30 09:51:56 +11:00
Clément Foucault
4851ec7f19 Workbench: Add 4 default studio lights
Made by me. Not definitive, subject to change.
2018-11-29 21:52:36 +01:00
919503d204 New splash image for Beta.
This one focuses on the development fund campaign. We plan to do more
more splash updates during the Beta.
2018-11-29 16:50:00 +01:00
Philipp Oeser
39dcf6a10a make node editor tool region background transparent
followup to rB1944bca49a22c18b059d84daf56908b6e15591ad

Differential Revision: https://developer.blender.org/D3999
2018-11-27 11:09:56 +01:00
Pablo Vazquez
83821f698a UI Theme: Transparent toolbar for UV/Image Editor and consistency tweaks.
Spotted by the community during a live stream!
2018-11-27 02:18:25 +01:00
Julian Eisel
b00963afc1 UI: Initial User-Preferences redesign
Implements the first changes for T54115:

* Rename "User Preferences" window to "Settings" in the UI.
  We'll likely put workspace settings in there, separate from the global
  user settings. System settings should become separate from user
  settings in future to allow settings for specific hardware.
* Add sidebar region for navigation (scrolls independently).
  Addresses space problems, so we can add more categories as needed now.
* Increase size of Settings window to compensate new navigation bar.
* Group sections into User Preferences and System.
  Icons for section groups by Andrzej Ambroz. Thanks!
* Bumps subversion for file compatibility.

Screenshot: https://developer.blender.org/F5715337

I also added categories for future work, but commented them out.
We may also want to redesign contents of each section now.

Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D3088
Design Task: https://developer.blender.org/T54115
2018-11-25 17:08:58 +01:00
b05adc1f97 Icons: add Select tool icon. 2018-11-23 17:12:57 +01:00
3fb77591f4 UI: fix wrong icons after recent update.
This cleans up old icon .data files that were still hanging around,
but not in the SVG anymore.
2018-11-22 21:27:20 +01:00
Campbell Barton
27bbf19af8 Icons: binary data update from SVG 2018-11-22 15:29:26 +11:00
Campbell Barton
9b788546b7 Icons: updates by jendrzych
Changed to correct disclosure triangles everywhere,
added new icon for Output Properties,
added new icons for Image & Empty types in Add menu,
added icons for add-on types, plus other tweaks and adjustments.
2018-11-22 15:26:01 +11:00
Pablo Vazquez
f021536bab UI Theme: Minor improvements on contrast and consistency.
* 3D Viewport grid adjustment to work with both bright/dark viewports (e.g. 2D Animation)
* Match header/grid of NLA with Dopesheet/Graph Editor.
* Avoid pure whites in unselected/inactive text.
* Darken the scrollbar numbers.
2018-11-21 00:40:36 +01:00
William Reynish
c3e2b40a91 Icons: sculpt tool updates r62157
- Blue = Add/Subtract
- Yellow = Flatten/Contrast
- Red = Grab
- Grey = General/Other
2018-11-15 22:32:38 +11:00
William Reynish
93b373060f Icons: add tilt tool 2018-11-15 22:31:42 +11:00
Philipp Oeser
de36a2f99b Fix T57794: Text in Clip Editor Dopesheet not visible
Maniphest Tasks: T57794

Differential Revision: https://developer.blender.org/D3937
2018-11-13 12:04:46 +01:00
Campbell Barton
26e904ab5c Icons: rename gpencil 2018-11-09 17:41:18 +11:00
Campbell Barton
77b925c9f8 Icons: update to r62155
- Tweaked GP toolbar icons and added Line, Rectangle & Circle.
- Added the remaining toolbar icons for all our paint & sculpt modes.
- Made all the toolbar icons the same simple style.
2018-11-09 17:33:50 +11:00
Campbell Barton
ad3a2415fc Icons: add ops.paint.weight_sample 2018-11-07 12:57:24 +11:00
Campbell Barton
b9e919b003 Icons: remove unused vertex paint icons
Also update names to match enum.
2018-11-07 12:57:24 +11:00
Pablo Vazquez
87a6aab251 UI: Fix hard to see unselected channel name in Graph Editor.
And unify colors with the Dope Sheet.
2018-11-07 00:43:39 +01:00
ad248333a6 Merge branch 'master' into blender2.8 2018-11-06 20:04:06 +01:00
Troy Sobotka
81e2515a04 Fix T56055: color discrepancy between viewport and render for Filmic transforms. 2018-11-06 19:35:50 +01:00
Campbell Barton
a817613be5 Cleanup: remove unused brushes 2018-11-06 18:21:52 +11:00
Campbell Barton
f267921774 UI: remove grease pencil icons
Grease pencil tool now uses an icon for each tool,
previously it mapped icons to tool icons which is now not needed
because for each tool a different brush can be selected which has it's
own icon.
2018-11-03 20:35:34 +11:00
Pablo Vazquez
2b6ae64257 UI: Blue color for selected row in Outliner.
Same hue as used in the rest of the Default theme. Darkened slightly the background and tweaked category icon colors for better contrast.
2018-11-03 03:43:14 +01:00
William Reynish
9fbba61f4b UI: icon set updates by Andrzej Ambroz.
New icons for duplicate, driver types, window, hue/saturation.
2018-10-31 17:59:00 +01:00
Campbell Barton
2d37f55559 UI: Match region tabs with other navigation tabs 2018-10-31 16:14:48 +11:00
Pablo Vazquez
036a4b4087 UI: Match tabs active color with properties background color
Also match topbar background color with active tab so they blend better.
And other minor adjustments for consistency.
2018-10-30 23:37:22 +01:00
Julian Eisel
d64247976c UI: Update Default Theme File After Recent Changes 2018-10-29 21:47:27 +01:00