godotengine / godotengine/godot

The issue of setting high-definition images in godot controls on mobile devices

Open
#89,670 10 comments 0 reactions 0 assignees View on GitHub
discussion topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

4.2

### System information

macos 14.2.1 (23C71)

### Issue description

In the iOS project, after using the colorPicker.add_theme_icon_override("picker_cursor",grabber_icon_texture) method to replace high-definition @ 3x images, the Godot control was unable to shrink the image, resulting in the control becoming larger.

All controls have this issue, such as HSlider(grabber), LineEdit(clear), ColorPicket(picker_cursor), etc

![image](https://github.com/godotengine/godot/assets/134466716/f3fa8d86-09d2-4978-a9e1-ffde61e4bc8c)

### Steps to reproduce

null

### Minimal reproduction project (MRP)

null

Contributor guide

Open the contributing guide

Research direction

Start with the reported colorPicker.add_theme_icon_override("picker_cursor", grabber_icon_texture) call and investigate the image sizing behavior across HSlider grabber, LineEdit clear, and ColorPicker picker_cursor controls. There is no reproduction project or named test in the issue; done means high-definition replacement images retain the intended control dimensions on iOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.