Skip to content

Commit

Permalink
Fix macOS ListBox/TableView select color
Browse files Browse the repository at this point in the history
  • Loading branch information
frang75 committed Apr 4, 2024
1 parent 845c4c0 commit 7485964
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

* WindowsXP TableView/ListBox select colors. [Commit](https://github.com/frang75/nappgui_src/commit/fd0983ff06cbea190a543e9f119e749c436b954d).

* macOS TableView/ListBox select colors. [Isssue](https://github.com/frang75/nappgui_src/issues/115).

### Improved

* `gui_text_t` properties in private API. [Commit](https://github.com/frang75/nappgui_src/commit/579766ab451eb445ce5013a93892261997137706).

* `str_splits()` adds a new `add_empty` parameters. [Issue](https://github.com/frang75/nappgui_src/issues/124). [Doc](https://nappgui.com/en/core/string.html#f52)
* `str_splits()` adds a new `add_empty` parameter. [Issue](https://github.com/frang75/nappgui_src/issues/124). [Doc](https://nappgui.com/en/core/string.html#f52). [Commit](https://github.com/frang75/nappgui_src/commit/845c4c01ca282abbe6751ed51cb6a28b1860076f).

## v1.4.1 - Apr 3, 2024 (r4993)

Expand Down
2 changes: 1 addition & 1 deletion prj/build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5007
5012
4 changes: 4 additions & 0 deletions src/osgui/osx/osglobals.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ static void i_theme_colors(void)

/* Text background color (normal, selected, mouse over */
oscolor_NSColor_rgba_v([NSColor controlColor], i_BACK_COLOR);
#if defined(MAC_OS_X_VERSION_10_14) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_14
oscolor_NSColor_rgba_v([NSColor selectedContentBackgroundColor], i_SELBG_COLOR);
#else
oscolor_NSColor_rgba_v([NSColor selectedControlColor], i_SELBG_COLOR);
#endif
oscolor_NSColor_rgba_v([NSColor controlColor], i_HOTBG_COLOR);

/* Text background color in not active windows (normal, selected, mouse over */
Expand Down

0 comments on commit 7485964

Please sign in to comment.