WIP: UI: Icons at 64x64 and Simplified Process #112261
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
Asset Browser Project
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#112261
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Harley/blender:Icon64"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a third MIP level to our icons, in 64x64, allowing non-blurry sizes
above 2X scale (1X scale with Retina). Also greatly simplifies our icon
processes in the project.
This simplifies our processes and allows more detailed icons.
The current process for the interface icons in Blender is a bit involved. We first export rasterized PNG versions of our vector SVG source file. Those PNGS are then read and are broken up into individual icon bitmaps that are stored in the source
blender_icons16
andblender_icons32
folders (1358 files, totaling about 8 Megabytes). Blender then takes those individual bitmaps and puts them back together to make the two levels of a mipmap that is used to draw the icons.One mipmap level, 16x16, is used to draw the icons when the resolution scale is exactly 1.0 or smaller. The other level, 32x32, is used for all scales above 1.0. The first problem is that the icon detail maxes out at 2x scale. When viewing on a high-dpi monitor this will be shown as 1.0 scale. Any larger scale will show fuzzy icons. And there are many users who might prefer a scale larger than 1.0 on a Retina screen or 2.0 on a 4K monitor.
This PR first simplifies the process. Instead of including the 1358 bitmap files (8 Megabytes) in the blender executable, we include just one PNG file of just 585 Kilobytes. This means that we no longer need the
blender_icons16
andblender_icons32
folders and could remove them from the project. This also eliminates the often (and current) problem of those folders being out of sync with the SVG source.This PR uses the one PNG file to create a mipmap level of 64x64. It then creates the 32x32, 16x16, & 8x8 levels. This allows perfectly clear icons to 4.0 scale on regular monitors and to 2.0 scale on Retina displays. Because of this change this PR also increases the range of
ui_scale
to a soft limit of 4 and a hard limit of 8.The following captures illustrate the differences.
32x32 icons on top, 64x64 below:
32x32 at left, 64x64 at right
d93b35e0b5
tof4cf2904ff
WIP: UI: Icons at 64x64to WIP: UI: Icons at 64x64 and CustomizableWIP: UI: Icons at 64x64 and Customizableto WIP: UI: Icons at 64x64 and Simplified ProcessClosing. We got unconstrained sizes with #121718
Pull request closed