UI: Improved Placeholder Defaults #113688

Merged
Harley Acheson merged 2 commits from Harley/blender:PlaceHolderDefaults into main 2023-10-13 18:53:42 +02:00
Member

Improvements to how placeholder strings are guessed. Checking for
search icon, and also using name of the RNA property type.

Improvements to how placeholder strings are guessed. Checking for search icon, and also using name of the RNA property type.
Harley Acheson added 1 commit 2023-10-13 18:27:22 +02:00
3faf2dd0c8 UI: Improving Placeholder Defaults
Two changes to the how placeholder strings are guessed, which work for
Timeline Active Keying Set and for Addon Search.
Harley Acheson added this to the User Interface project 2023-10-13 18:27:33 +02:00
Harley Acheson requested review from Julian Eisel 2023-10-13 18:27:41 +02:00
Julian Eisel reviewed 2023-10-13 18:34:16 +02:00
@ -5933,3 +5936,3 @@
else if (but->type == UI_BTYPE_TEXT) {
const char *identifier = RNA_property_identifier(but->rnaprop);
if (STR_ELEM(identifier, "search_filter", "filter_text", "filter_search")) {
if (STR_ELEM(identifier, "search_filter", "filter_text", "filter_search", "addon_search")) {
Member

Hrm, hardcoding the property names is, meeeh. I think better to check if the icon is the search icon. Unlikely, but in case this backfires too much, we can have a flag for search properties.

Hrm, hardcoding the property names is, meeeh. I think better to check if the icon is the search icon. Unlikely, but in case this backfires too much, we can have a flag for search properties.
Harley marked this conversation as resolved
Harley Acheson added 1 commit 2023-10-13 18:41:45 +02:00
Julian Eisel approved these changes 2023-10-13 18:43:32 +02:00
Author
Member

I think better to check if the icon is the search icon...

I had thought that insufficient, but I have changed that section to check for ICON_VIEWZOOM and not seeing any problems at all yet.

> I think better to check if the icon is the search icon... I had thought that insufficient, but I have changed that section to check for ICON_VIEWZOOM and not seeing any problems at all yet.
Harley Acheson changed title from UI: Improving Placeholder Defaults to UI: Improved Placeholder Defaults 2023-10-13 18:50:05 +02:00
Harley Acheson merged commit 5a1ad7d61d into main 2023-10-13 18:53:42 +02:00
Harley Acheson deleted branch PlaceHolderDefaults 2023-10-13 18:53:44 +02:00
Sign in to join this conversation.
No reviewers
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#113688
No description provided.