WIP: UI: Icons at 64x64 and Simplified Process #112261

Closed
Harley Acheson wants to merge 13 commits from Harley/blender:Icon64 into main

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

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 and blender_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 and blender_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:

image

32x32 at left, 64x64 at right

image

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` and `blender_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` and `blender_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: ![image](/attachments/eba81b80-825e-4997-a13b-a25225a6b365) 32x32 at left, 64x64 at right ![image](/attachments/05307f14-4b0b-4137-bd4b-2add017e8c75)
Harley Acheson added this to the User Interface project 2023-09-12 01:59:21 +02:00
Harley Acheson force-pushed Icon64 from d93b35e0b5 to f4cf2904ff 2023-10-01 22:43:55 +02:00 Compare
Harley Acheson changed title from WIP: UI: Icons at 64x64 to WIP: UI: Icons at 64x64 and Customizable 2023-10-01 22:45:09 +02:00
Harley Acheson requested review from Pablo Vazquez 2023-10-01 23:08:44 +02:00
Harley Acheson added 1 commit 2023-10-02 17:11:46 +02:00
Harley Acheson added 1 commit 2023-10-02 18:43:15 +02:00
Harley Acheson added 1 commit 2023-10-10 00:00:13 +02:00
Harley Acheson added 1 commit 2023-10-23 05:56:25 +02:00
Harley Acheson added 2 commits 2023-11-12 19:01:19 +01:00
Harley Acheson added 2 commits 2023-11-15 21:25:40 +01:00
Harley Acheson added 2 commits 2023-11-16 18:19:42 +01:00
Harley Acheson changed title from WIP: UI: Icons at 64x64 and Customizable to WIP: UI: Icons at 64x64 and Simplified Process 2023-11-16 18:20:45 +01:00
Harley Acheson added 2 commits 2023-11-21 22:42:34 +01:00
Author
Member

Closing. We got unconstrained sizes with #121718

Closing. We got unconstrained sizes with #121718
Harley Acheson closed this pull request 2024-06-23 20:09:45 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
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
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#112261
No description provided.