Commit Graph

187 Commits

Author SHA1 Message Date
Jacob Ahnstedt de3bf05b40 Replaced tabs with spaces 2023-12-12 15:30:13 +01:00
Jacob Ahnstedt 0a7b4eec8e Fixed missed removed alignment params 2023-11-28 09:58:43 +01:00
Jacob Ahnstedt 9af3869728 Made the PR not break current API 2023-11-28 09:52:30 +01:00
Jacob Ahnstedt 44bd238502 Fixed typo 2023-11-27 17:03:10 +01:00
Jacob Ahnstedt 8af4468cce Fixed centered not being quite in the center 2023-11-26 14:45:06 +01:00
Jacob Ahnstedt 657e525ff8 Added all alignments to toggleables 2023-11-26 14:29:25 +01:00
Jacob Ahnstedt 8abee24513 Added changes to changelog and bumped clib.json 2023-11-26 11:22:28 +01:00
Jacob Ahnstedt 2a52826392 Removed widget alignment for the draw functions of toggleables 2023-11-26 10:44:37 +01:00
Jacob Ahnstedt c5ee9a58ed Added text alignment to toggleables 2023-11-26 10:25:36 +01:00
Jacob Ahnstedt 208dbc506e Merge branch 'master' of https://github.com/Immediate-Mode-UI/Nuklear into offical/align_widgets
# Conflicts:
#	demo/common/overview.c
#	nuklear.h
#	src/nuklear_toggle.c
2023-11-26 00:19:09 +01:00
Jacob Ahnstedt e782760da3 Added option alignment right 2023-11-24 16:33:16 +01:00
Jacob Ahnstedt f187c39283 Added checkbox alignment right 2023-11-24 16:24:20 +01:00
Jacob Ahnstedt 39e2ee3ce4 Removed color factoring for item colored selectables 2023-11-20 14:02:12 +01:00
Jacob Ahnstedt afbd133914 Fixed missing color factoring for widget disabling 2023-11-20 14:01:22 +01:00
Jacob Ahnstedt df13a41ada Fixed C90 compliance issue 2023-11-20 13:56:19 +01:00
Jacob Ahnstedt aaff4f014a Merge branch 'master' of https://github.com/Immediate-Mode-UI/Nuklear into disable-widgets
# Conflicts:
#	clib.json
2023-11-20 12:55:39 +01:00
David Reid a668105390 Fix button text alignment error.
When calculating the width and height of the content rect of a button,
only the border of one side is being taken into account. Instead the
border width needs to be multiplied by two before subtracting from the
bounds. This is being done for padding and rounding, but not border,
which is resulting in text being misaligned, most notably when using
buttons with thick borders.
2023-11-14 15:39:10 +10:00
Yukyduky f88d7b58bb Fixed tabs not being shown as disabled properly 2023-10-29 10:18:09 +01:00
Yukyduky 4545d184d3 Separated color_factor for button into text and background
Tree node button background looked out of place when disabled, so I made the background not be affected by being disabled.
2023-10-29 10:16:17 +01:00
Yukyduky b1fcf9244f Changed a false to an nk_false 2023-10-18 22:33:05 +02:00
Yukyduky 5a6569a2c9 Added disabled factor & performance improvement
Added NK_WIDGET_DISABLED_FACTOR, global factor for disabled color
2023-10-17 20:04:14 +02:00
Yukyduky 2b7f047f15 Merge branch 'master' of https://github.com/Immediate-Mode-UI/Nuklear into disable-widgets 2023-10-17 08:13:06 +02:00
Rob Loach bed81e2f4e
Allow disabling STB_*_IMPLEMENTATION (#578)
When having stb_rect_pack or stb_truetype used elsewhere in your project, Nuklear could cause conflicts. This change adds `NK_NO_STB_RECT_PACK_IMPLEMENTATION` or `NK_NO_STB_TRUETYPE_IMPLEMENTATION` to allow disabling adding `STB_RECT_PACK_IMPLEMENTATION` or `STB_TRUETYPE_IMPLEMENTATION`.
2023-10-17 01:57:25 -04:00
Rob Loach 7478cd77e5
Merge pull request #577 from fitzsim/ppc64-1
Use __PPC64__ macro for GCC detection
2023-10-16 23:44:39 -04:00
Wladislav ヴラド Artsimovich 894f2776f7 Merge remote-tracking branch 'upstream/master' into horizontal_rule 2023-10-17 11:17:55 +09:00
Yukyduky 25cda15319 Fixed two copy paste mistakes 2023-10-13 11:56:14 +02:00
Yukyduky 8016ff334d Added feature to disable widgets 2023-10-11 21:27:52 +02:00
Thomas Fitzsimmons 83df3367b4 Use __PPC64__ macro for GCC detection 2023-09-12 16:26:17 -04:00
Rob Loach 614abce05b
Merge pull request #563 from FrostKiwi/fix_click-drag_on_touch
Fix click drag on touch + WebBrowsers
2023-08-03 11:50:52 -04:00
Rob Loach 12d4e2b257
Merge pull request #545 from vabenil/fix_doc_variable
fix variable name in docs
2023-08-03 11:46:43 -04:00
Rob Loach 017f27be5b
Merge pull request #531 from dulingzhi/fix/incorrect-font-bake
Fix incorrect glyph index in nk_font_bake
2023-08-02 03:21:52 -04:00
Wladislav ヴラド Artsimovich e48dd2144f Fix Click-Drag for touch events. 2023-06-26 19:30:45 +09:00
vabenil f0e776031b Fix docs variable name in source 2023-02-20 18:59:43 +02:00
Rongcui Dong cb6132f171 Update docs 2023-01-17 15:19:05 -05:00
LonerDan 7c84c3cc18
Remove link to no longer existing tool
The link to the online single header packer (https://apoorvaj.io/single-header-packer.html) no longer works (returns 404), so remove it.
2023-01-13 12:33:12 +01:00
Jai 23cb43f5eb Fix incorrect glyph index in nk_font_bake 2022-12-23 22:36:59 +08:00
Rob Loach c512ac8864
Merge pull request #527 from dulingzhi/fix/ttc-font-offset
Fix nk_font_bake_pack() using TTC font offset incorrectly
2022-12-17 14:04:55 -05:00
Rob Loach 743dd0105f
Update version for 4.10.5 2022-12-17 14:01:12 -05:00
Jai 1dad328fe9 Fix the problem that nk_font_bake_pack uses ttc font offset incorrectly (#456) 2022-12-16 12:20:03 +08:00
Mark Jansen 607e4716cc
Add link from the documentation to the code
Fixes #515
2022-12-03 21:57:14 +01:00
loli da5198ccdc Fix nk_str_{append,insert}_str_utf8 always returning 0 2022-10-24 10:40:48 +02:00
Rob Loach e3d049e63e
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into tex_null 2022-09-28 01:52:11 -04:00
dczheng a74061af6d Fix typo 2022-09-23 00:27:48 +08:00
Rob Loach ce1c94d84b
Fix Apple Silicon with incorrect NK_SITE_TYPE and NK_POINTER_TYPE 2022-09-11 13:53:59 -04:00
Rob Loach c55fd8cc62
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into tex_null 2022-08-03 13:59:10 -04:00
Rob Loach e57ee582ab
Update NK_MIN() call to save a line of code 2022-08-03 13:00:54 -04:00
opsJson df86105c69 Fix tabs 2022-08-01 16:19:45 -03:00
opsJson c7c3069dc2 following the read me 2022-08-01 15:33:42 -03:00
opsJson 9f0a601395
Update nuklear_text_editor.c 2022-07-30 21:36:01 -03:00
Rob Loach 54fd67bddd
Rename additional .null variables 2022-07-30 17:43:46 -04:00