openframeworks / openframeworks/openFrameworks

ofxGui / ofxPanel: disableHeader() and .getGroup("g").minimize() are looking bad

Open
#6,470 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

    gui_VideoFx.setup("VIDEO FX");
    gui_VideoFx.add(params_VideoFX);

1/ looks fine:
Screen Shot 2019-11-23 at 19 57 15

2/ looks bad:

    gui_VideoFx.disableHeader();//BUG
    gui_VideoFx.getGroup("VIDEO FX").minimize();//OK
    gui_VideoFx.getGroup(frag1.parameters.getName()).minimize();//BUG

if the group we like to minimize is nested (not the root group), then it is not minimized fine.
When disabling header it looks strange, like below the next title.

Screen Shot 2019-11-23 at 19 56 10

BTW, I am using a modified theme like this:

    //ofxGui theme
    ofxGuiSetFont("fonts/PragmataProR_0822.ttf", 8);
    ofxGuiSetDefaultHeight(18);
    ofxGuiSetBorderColor(16);
    ofxGuiSetFillColor(ofColor(48));
    ofxGuiSetTextColor(ofColor::white);
    ofxGuiSetHeaderColor(ofColor(32));

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 with the ofxGui entry points named in the report: disableHeader(), getGroup(), and minimize(). Reproduce the root and nested-group cases using the shown setup and custom theme, then inspect their rendering behavior. Done means headers disable cleanly and both root and nested groups minimize without visual artifacts.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
design, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.