Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

nk_draw_text ignores background color

Open
#235 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

The `nk_draw_text()` function accepts a background and foreground color, but only the foreground color is used.

That is because `nk_draw_list_add_text()` doesn't handle the background color.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at nk_draw_text() and trace its call to nk_draw_list_add_text(), focusing on how the background and foreground colors are passed. The issue is done when background color is rendered as well as foreground color; verify the behavior with the project’s existing checks or a minimal drawing case.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.