UI: remove "vertex_active" theme color from Editors that dont use it #106936

Closed
Philipp Oeser wants to merge 1 commits from lichtwerk/blender:106885 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Report was that "Active Vertex" theme color does nothing for the 3D
View.

  • vertex_active / TH_VERTEX_ACTIVE is only in use for the Graph
    Editor (FCurve points).
  • editmesh_active / TH_EDITMESH_ACTIVE is in use elsewhere [we might
    consider changing the name here geometry_point_active? -- since it is
    also used for curves]

Both of these are included in rna_def_userdef_theme_spaces_vertex
[which is used for the Graph Editor, 3D View and Image Editor]

So solution might be to move this out of
rna_def_userdef_theme_spaces_vertex and into
rna_def_userdef_theme_space_graph (of course, the naming for
rna_def_userdef_theme_spaces_vertex is then also a bit "improvable")

Fixes #106885

Report was that "Active Vertex" theme color does nothing for the 3D View. - `vertex_active` / `TH_VERTEX_ACTIVE` is only in use for the Graph Editor (FCurve points). - `editmesh_active` / `TH_EDITMESH_ACTIVE` is in use elsewhere [we might consider changing the name here `geometry_point_active`? -- since it is also used for curves] Both of these are included in `rna_def_userdef_theme_spaces_vertex` [which is used for the `Graph Editor`, `3D View` and `Image Editor`] So solution might be to move this out of `rna_def_userdef_theme_spaces_vertex` and into `rna_def_userdef_theme_space_graph` (of course, the naming for `rna_def_userdef_theme_spaces_vertex` is then also a bit "improvable") Fixes #106885
Philipp Oeser added 1 commit 2023-04-14 10:42:05 +02:00
4b11e5fcb7 UI: remove "vertex_active" theme color from Editors that dont use it
Report was that "Active Vertex" theme color does nothing for the 3D
View.

- `vertex_active` / `TH_VERTEX_ACTIVE` is only in use for the Graph
Editor (FCurve points).
- `editmesh_active` / `TH_EDITMESH_ACTIVE` is in use elsewhere [we might
consider changing the name here `geometry_point_active`? -- since it is
also used for curves]

Both of these are included in `rna_def_userdef_theme_spaces_vertex`
[which is used for the `Graph Editor`, `3D View` and `Image Editor`]

So solution might be to move this out of
`rna_def_userdef_theme_spaces_vertex` and into
`rna_def_userdef_theme_space_graph` (of course, the naming for
`rna_def_userdef_theme_spaces_vertex` is then also a bit "improvable")

Fixes #106885
Philipp Oeser added this to the User Interface project 2023-04-14 10:42:19 +02:00
Philipp Oeser requested review from Pablo Vazquez 2023-04-14 10:42:27 +02:00
Philipp Oeser requested review from Harley Acheson 2023-04-14 10:42:35 +02:00
Member

Interesting! That works well and I had to give it a think on why it doesn't need versioning.

editmesh_active / TH_EDITMESH_ACTIVE is in use elsewhere [we might
consider changing the name here geometry_point_active? -- since it is
also used for curves]

AFAIK "editmesh_active" is used for the color of the active vertex, edge, and face. As in 3D View uses separate colors for selected vertex, edge, and face. But then has this single weird editmesh_active for all the actives. And with that we ignore the alpha for active vertex and edge but use the alpha for the active face somehow. It behaves oddly.

But maybe could be renamed "geometry_active" or similar so not to imply it is just for points?

Interesting! That works well and I had to give it a think on why it doesn't need versioning. > editmesh_active / TH_EDITMESH_ACTIVE is in use elsewhere [we might consider changing the name here geometry_point_active? -- since it is also used for curves] AFAIK "editmesh_active" is used for the color of the active vertex, edge, and face. As in 3D View uses separate colors for _selected_ vertex, edge, and face. But then has this single weird editmesh_active for all the actives. And with that we ignore the alpha for active vertex and edge but use the alpha for the active face somehow. It behaves oddly. But maybe could be renamed "geometry_active" or similar so not to imply it is just for points?
Member

+1 on the change to geometry_active or geometry_component_active or similar.

+1 on the change to `geometry_active` or `geometry_component_active` or similar.
Member

Perhaps 4.0 is a good time to finish with the rename of this setting?

Perhaps 4.0 is a good time to finish with the rename of this setting?
Member

Perhaps 4.0 is a good time to finish with the rename of this setting?

4.2 could be a good time too, before Extension themes.

> Perhaps 4.0 is a good time to finish with the rename of this setting? 4.2 could be a good time too, before Extension themes.
Member

Hi, maybe we can close this. Merged: !119649

Hi, maybe we can close this. Merged: !119649
Author
Member

Hi, maybe we can close this. Merged: !119649

Sure :)

> Hi, maybe we can close this. Merged: !119649 Sure :)
Philipp Oeser closed this pull request 2024-04-11 13:24:55 +02:00

Pull request closed

Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#106936
No description provided.