Commit graph

52 commits

Author SHA1 Message Date
10309b6b18 System/Libraries/Html/Renderer: Initial favicon support
This only supports RGBx color depths at the moment, but it's good enough
for most modern sites.
2025-04-14 16:45:51 -04:00
6532218883 System/Libraries/Html/Renderer: Handle node->textAlign a bit better
Just a few QoL tweaks for now, until we properly handle CSS, layout,
and everything else.
2025-04-14 10:53:05 -04:00
dd86ef6a44 Meta: Add some layout debugging stuff 2025-04-13 14:40:44 -04:00
08313be27f System/Libraries/Html/Renderer: Refactor @render_node_list 2025-04-13 14:39:24 -04:00
fc0c98ee2b System/Libraries/Html/Renderer: Add debug options 2025-04-12 20:12:43 -04:00
9e0668d0e0 System/Libraries/Html/Renderer: Initial support for node->textAlign
This only works for very simple cases, but it is enough for centering
and right-align text on sites like Wiby, and a centered Google logo. :^)
2025-04-12 19:57:49 -04:00
e8bc19b444 System/Libraries/Html/Renderer: Fix an oopsie woopsie (advance by code point, rather than byte) 2025-04-12 18:48:58 -04:00
d068f46bc6 Meta: Remove debugging stuff 2025-04-12 18:26:43 -04:00
3201b187ec System/Api/Dns: Remove some old Slon debugging stuff that breaks Catbox DNS lookup 2025-04-12 18:16:29 -04:00
df0adc0a15 Everywhere: Changes to @html_dom_node and TrueType API
CSS properties fontFamily and fontSize are part of @html_dom_node now,
and the TrueType API only accepts I32 code point streams, so we have
to preprocess UTF-8 streams before rendering text.
2025-04-12 18:09:26 -04:00
bef1c78c5d System/Utilities/TrueType: Change pointer type to I32* for @stbtt_RenderText() 2025-04-12 18:04:40 -04:00
b01e1171a3 System/Core/Compositor: Set defaults for TrueType font categories 2025-04-12 16:23:51 -04:00
6b09ccabb6 System/Libraries/Html: Add fontFamily attribute to @html_dom_node 2025-04-11 20:11:25 -04:00
8143d59620 System/Libraries/Css/Tokenizer: Split values on comma 2025-04-11 20:10:52 -04:00
603e1d15ab System/Libraries/Html/Renderer: Apply bgcolor/color element attribute values to CSS 2025-04-11 17:22:29 -04:00
17910faac2 System/Libraries/Html/Renderer: Match rules in accordance with CSS Specificity 2025-04-11 16:58:48 -04:00
3e8d126fbe System/Libraries/Html/Renderer: Add NULL check to @reflow_node_list() 2025-04-10 19:48:11 -04:00
c45b862b2b System/Libraries/Html/Renderer: Render INPUT type=checkbox 2025-04-10 14:49:35 -04:00
4992c222d7 System/Libraries/Html/Renderer: Render INPUT type=password 2025-04-10 11:41:13 -04:00
42e4f89b8b System/Libraries/Html/Renderer: Render INPUT type=text 2025-04-10 11:35:43 -04:00
5fb71f80ca System/Libraries/Widget: Eager repaint on widget->SetText() unless otherwise specified 2025-04-10 10:58:30 -04:00
d3048f31e5 Applications/Internet/Cyberia: Add web browser
This is the initial commit of the Cyberia web browser, Html and Css
libraries.
2025-04-10 10:51:59 -04:00
3545113247 System/Libraries/Gui: Add data attribute to Widget class 2025-04-10 10:47:37 -04:00
86190d4576 System/Core/Compositor: Hold F12 to display debug info 2025-04-10 10:08:38 -04:00
96226e6211 System/Libraries/Ipc: Add msg->timestamp to IpcMessage class 2025-04-10 08:37:57 -04:00
ebacbeafca System/Core/Compositor: Update menubar title in @compositor_refresh(win) 2025-04-10 08:28:49 -04:00
940e7b230c System/Libraries/Gui: Add Bool explicit_repaint to Window class 2025-04-09 09:03:18 -04:00
2b8092f418 System/Libraries/Graphics2D: Add @get_truetype_text_width() 2025-04-09 08:59:06 -04:00
26f67901cc System/Libraries/System: Add timestamp to System.Log() 2025-04-08 07:16:57 -04:00
844f36663a Meta: Suppress compiler warnings 2025-04-05 16:33:10 -04:00
c608390142 System/Setup/Environment: Enable SSE on all cores 2025-04-05 09:38:28 -04:00
88fc55ac18 System/Core/Compositor: Initialize TrueType fonts 2025-04-05 09:22:22 -04:00
a58151430c System/Libraries/Graphics2D: Specify font name for Text2D 2025-04-05 09:21:54 -04:00
9c43ac1073 System/Utilities/TrueType: Add @stbtt_GetFontNameDefault 2025-04-05 09:19:10 -04:00
e5342de633 System/Libraries/Graphics2D: Add ctx->text() 2025-04-04 20:14:39 -04:00
356c16580c System/Utilities/TrueType: Add TrueType font support via stb_truetype.h 2025-04-04 18:20:36 -04:00
3de382e6c5 Everywhere: Set default ctx->opacity to -1 2025-04-04 11:14:30 -04:00
a9c623685d System/Libraries/Graphics2D: Add member 'opacity' to Context2D
This is meant to be used for alpha blending in the Compositor, unrelated
to the context's own alpha channel.
2025-04-04 08:23:21 -04:00
f2800ba2d6 System/Shell/Commands/cat: Allow concatenating http/https URLs 2025-03-30 05:41:29 -04:00
5107975a32 System/Libraries/Graphics2D: Use MemCpyU64 for Flip() 2025-03-29 14:54:29 -04:00
bfa41f334b System/Core/MessageBox: Update API and add Confirm() 2025-03-28 19:07:07 -04:00
39cdf87903 System/Setup/Environment: Don't deadlock on spawning multicore tasks simultaneously 2025-03-28 10:31:57 -04:00
19977d3a15 System/Libraries/Graphics2D: Make (most) callable functions chainable 2025-03-27 10:36:27 -04:00
337513fb52 System/Libraries/Graphics2D: Free up callable functions in DelContext2D() 2025-03-26 14:45:37 -04:00
7cc54e1f6a System/Shell/Commands: Add stub for exit 2025-03-26 13:03:07 -04:00
51f8a5a9d4 System/Libraries/Stdio: Sort autocomplete results alphabetically 2025-03-26 13:02:51 -04:00
ccac8b2baa System/Libraries/Stdio: Implement shell command autocomplete 2025-03-26 11:27:53 -04:00
ad4bc00396 System/Shell/Commands/ping: Exit on Ctrl-C 2025-03-26 08:38:07 -04:00
6db56f5283 Everywhere: Use ctx->blot() 2025-03-25 11:43:35 -04:00
6232873c49 Everywhere: Use ctx->fill() 2025-03-25 11:24:29 -04:00