UI: Demonstration of Non-Obscuring Area Borders #115251

Open
Harley Acheson wants to merge 12 commits from Harley/blender:AreaBorders into main

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

Just a demonstration of changes to how area borders are drawn.


As discussed in our module meeting.

Most people do not realize that our area borders are drawn in a way that obscures content below them and keeps us from knowing, and using, the full extent of the areas to their edges.

Although each area appears to be 5 pixels or more apart, they are in fact one pixel apart. After each area is drawn all the edges are draw over top. At 1X scale this would be a band that is 2 1/2 pixels wide going around each area and including the rounded corners. This border is done with a single shader in one step. The corner radius is tied to the border thickness and we don't have separate control over these. And we have no way of having some corners rounded while others not.

This PR demonstrates a process that is probably closer to what you thought we were already doing.

Each area is pulled apart by an amount that is exactly equal to the visual border width. These borders are then drawn in between using the TH_EDITOR_OUTLINE color. Then each corner is rounded separately.

To help illustrate what this allows, a few changes from today are included here.

Because the bottom of the workspace tabs are no longer obscured by an unknown number of pixels, this PR change them to show in a tab style that uses the default highlight color on the bottom:

image

Because the above is possible this also changes the Sidebar tabs to look similarly. This style works nicely with a partially transparent background rather than the darkness we normally see behind it:

image

To match this also makes the background of the properties tabs look less dark , which makes it look more like it is a part of that area rather than part of the gutter.

image

This also adds a subtle change to the border highlighting for the active area.
image

Just a demonstration of changes to how area borders are drawn. --- As discussed in our module meeting. Most people do not realize that our area borders are drawn in a way that obscures content below them and keeps us from knowing, and using, the full extent of the areas to their edges. Although each area appears to be 5 pixels or more apart, they are in fact one pixel apart. After each area is drawn all the edges are draw over top. At 1X scale this would be a band that is 2 1/2 pixels wide going around each area and including the rounded corners. This border is done with a single shader in one step. The corner radius is tied to the border thickness and we don't have separate control over these. And we have no way of having some corners rounded while others not. This PR demonstrates a process that is probably closer to what you thought we were already doing. Each area is pulled apart by an amount that is exactly equal to the visual border width. These borders are then drawn in between using the TH_EDITOR_OUTLINE color. Then each corner is rounded separately. To help illustrate what this allows, a few changes from today are included here. Because the bottom of the workspace tabs are no longer obscured by an unknown number of pixels, this PR change them to show in a tab style that uses the default highlight color on the bottom: ![image](/attachments/97097b4c-414a-41d3-8e93-3b241f713241) Because the above is possible this also changes the Sidebar tabs to look similarly. This style works nicely with a partially transparent background rather than the darkness we normally see behind it: ![image](/attachments/d61d401f-96ec-4e29-a6cc-f0385e1bbe21) To match this also makes the background of the properties tabs look less dark , which makes it look more like it is a part of that area rather than part of the gutter. ![image](/attachments/911e88a3-2adc-4db7-a655-7ad85f5b6813) This also adds a subtle change to the border highlighting for the active area. ![image](/attachments/39d862a7-a4dc-432c-b7b0-fb838834296e)
Harley Acheson added 1 commit 2023-11-22 02:52:39 +01:00
a88d5bb1f5 UI: Demonstration of Non-Obscuring Area Borders
Just a demonstration of changes to how area borders are drawn.
Harley Acheson added 1 commit 2023-11-22 03:02:15 +01:00
Harley Acheson added this to the User Interface project 2023-11-22 03:02:33 +01:00
Harley Acheson requested review from Julian Eisel 2023-11-22 03:02:42 +01:00
Harley Acheson requested review from Pablo Vazquez 2023-11-22 03:02:48 +01:00
Harley Acheson added 2 commits 2023-12-08 18:01:18 +01:00
Harley Acheson added 3 commits 2023-12-10 20:07:20 +01:00
Harley Acheson added 1 commit 2023-12-10 20:11:26 +01:00
First-time contributor

Small issue with editor headers.

Small issue with editor headers.
Harley Acheson added 2 commits 2023-12-19 23:23:59 +01:00
Harley Acheson added 1 commit 2023-12-30 20:43:27 +01:00
Harley Acheson added 1 commit 2024-01-28 23:49:45 +01:00
This pull request has changes conflicting with the target branch.
  • source/blender/blenloader/intern/versioning_userdef.cc
  • source/blender/editors/screen/screen_draw.cc
  • source/blender/editors/screen/screen_intern.h

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u AreaBorders:Harley-AreaBorders
git checkout Harley-AreaBorders
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
2 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#115251
No description provided.