UI: Theme: Remove face dot color property
Mesh faces have a separate theme color for selected dots (1px dot in the center of the face), in both the 3D Viewport and the Image Editor. I don't think there is any justification for why that 1 pixel has to be a different color from rest of the active face. Even if result isn't satisfying, we should be tweaking Face Selected color for this purpose. 1 pixel doesn't deserve its own theme setting. This PR removes property from both editors, and instead uses "Face Selected" color with alpha hardcoded to 1 (removed properties didn't have alpha). Also note that dot is still visible in 3D viewport because Face Selected color is different from Face Mode Selected color, which is used for faces when dots are drawn. There are no visual changes in default themes. Pull Request: https://projects.blender.org/blender/blender/pulls/145364
This commit is contained in:
committed by
Nika Kutsniashvili
parent
2e8d5a238e
commit
e0392599f8
@@ -281,7 +281,7 @@ void Resources::update_theme_settings(const DRWContext *ctx, const State &state)
|
||||
UI_GetThemeColor4fv(TH_NORMAL, gb.colors.normal);
|
||||
UI_GetThemeColor4fv(TH_VNORMAL, gb.colors.vnormal);
|
||||
UI_GetThemeColor4fv(TH_LNORMAL, gb.colors.lnormal);
|
||||
UI_GetThemeColor4fv(TH_FACE_DOT, gb.colors.facedot);
|
||||
UI_GetThemeColor4fv(TH_FACE_SELECT, gb.colors.facedot), gb.colors.facedot[3] = 1.0f;
|
||||
UI_GetThemeColor4fv(TH_SKIN_ROOT, gb.colors.skinroot);
|
||||
UI_GetThemeColor4fv(TH_BACK, gb.colors.background);
|
||||
UI_GetThemeColor4fv(TH_BACK_GRAD, gb.colors.background_gradient);
|
||||
|
||||
Reference in New Issue
Block a user