Merge lp:~thumper/unity/hud-text into lp:unity
Status: | Rejected |
---|---|
Rejected by: | Andrea Azzarone |
Proposed branch: | lp:~thumper/unity/hud-text |
Merge into: | lp:unity |
Diff against target: |
150 lines (+83/-3) 4 files modified
UnityCore/Hud.cpp (+52/-2) UnityCore/Hud.h (+2/-1) tests/CMakeLists.txt (+1/-0) tests/test_hud_text.cpp (+28/-0) |
To merge this branch: | bzr merge lp:~thumper/unity/hud-text |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Unity Team | Pending | ||
Review via email: mp+106550@code.launchpad.net |
Description of the change
= The problem =
The initial work on the hud had the results from the hud service being shown directly. The hud service uses the <b> tag to indicate search matches.
The design, https:/
= The solution =
Unfortunately we are not able to render transparency in the text at this stage due to limitations in the cairo methods we use. So what we do is to reformat the query strings in the hud service to use grey for the non-match parts.
= Tests =
./tests/
Screenshot: http://
Unmerged revisions
- 2367. By Tim Penhey
-
More tests, and the implementation.
- 2366. By Tim Penhey
-
And a failing test.
- 2365. By Tim Penhey
-
Step one.
- 2364. By Tim Penhey
-
Add the base function.
- 2363. By Tim Penhey
-
Added a bare test.
Hmm... I'm really not convinced that this is the best solution.
Perhaps we should refactor the display of the HudButton code to use a combination of StaticCairoText objects to render the text to get proper transparency.