Hard to read Brush strength in Blender Light theme #71491

Closed
opened 2019-11-11 16:14:41 +01:00 by Jun Mizutani · 7 comments
Contributor

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60

Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-11 09:09, hash: 19c44ae087
Worked: (optional)

Short description of error
[Please fill out a short description of the error here]
It is hard to read the brush strength in sculpt-mode with Blender Light theme.
When you set the Text Info ON in Viewport Overlays, the brush strength value will be drawn with white color.
When you set the Text Info OFF, the value will be drawn with black.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

  1. New with Sculpting.
  2. Change to Blender Light theme.
  3. Set Text Info OFF in Viewport Overlays.
  4. Hit Shift - F.

normal.png

lightmode.png

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60 **Blender Version** Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-11 09:09, hash: `19c44ae087` Worked: (optional) **Short description of error** [Please fill out a short description of the error here] It is hard to read the brush strength in sculpt-mode with Blender Light theme. When you set the Text Info ON in Viewport Overlays, the brush strength value will be drawn with white color. When you set the Text Info OFF, the value will be drawn with black. **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] 1. New with Sculpting. 2. Change to Blender Light theme. 3. Set Text Info OFF in Viewport Overlays. 4. Hit Shift - F. ![normal.png](https://archive.blender.org/developer/F8033482/normal.png) ![lightmode.png](https://archive.blender.org/developer/F8033505/lightmode.png)
Author
Contributor

Added subscriber: @jmztn

Added subscriber: @jmztn

Added subscriber: @mano-wii

Added subscriber: @mano-wii

The text color should not depend on the option Text info.
This is probably due to some unset gpu state.

The text color should not depend on the option `Text info`. This is probably due to some unset gpu state.
Pablo Dobarro was assigned by Germano Cavalcante 2019-11-12 21:51:23 +01:00

Added subscriber: @PabloDobarro

Added subscriber: @PabloDobarro

@PabloDobarro, you have worked in this area before.
One suggestion is to set the text color to the same color as the circle line:

diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 43bf5039825..c8c43991918 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -2320,6 +2320,7 @@ static void radial_control_paint_cursor(bContext *UNUSED(C), int x, int y, void
   immUnbindProgram();
 
   BLF_size(fontid, 1.75f * fstyle_points * U.pixelsize, U.dpi);
+  BLF_color3fv_alpha(fontid, col, 1.0f);
 
   /* draw value */
   BLF_width_and_height(fontid, str, strdrawlen, &strwidth, &strheight);

@PabloDobarro, you have worked in this area before. One suggestion is to set the text color to the same color as the circle line: ``` diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 43bf5039825..c8c43991918 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2320,6 +2320,7 @@ static void radial_control_paint_cursor(bContext *UNUSED(C), int x, int y, void immUnbindProgram(); BLF_size(fontid, 1.75f * fstyle_points * U.pixelsize, U.dpi); + BLF_color3fv_alpha(fontid, col, 1.0f); /* draw value */ BLF_width_and_height(fontid, str, strdrawlen, &strwidth, &strheight); ```
Pablo Dobarro was unassigned by Dalai Felinto 2019-12-23 13:44:08 +01:00

This issue was referenced by 9867106199

This issue was referenced by 98671061993e2d053514a4df0cce24b63645c049
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jeroen Bakker self-assigned this 2020-01-10 12:17:04 +01:00
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#71491
No description provided.