Commit graph

40013 commits

Author SHA1 Message Date
Xexxa 5099f1da2a Base: Add more emoji
🗽 - U+1F5FD STATUE OF LIBERTY
🌛 - U+1F31B FIRST QUARTER MOON FACE
🕊 - U+1F54A DOVE
 - U+270B RAISED HAND
🍔 - U+1F354 HAMBURGER
 - U+26FD FUEL PUMP
🌜 - U+1F31C LAST QUARTER MOON FACE
💣 - U+1F4A3 BOMB
🤖 - U+1F916 ROBOT
👽 - U+1F47D ALIEN
🧲 - U+1F9F2 MAGNET
🕯 - U+1F56F CANDLE
🛡 - U+1F6E1 SHIELD
🍍 - U+1F34D PINEAPPLE
🍓 - U+1F353 STRAWBERRY
📌 - U+1F4CC PUSHPIN
📍 - U+1F4CD ROUND PUSHPIN
🇦🇪 - U+1F1E6 U+1F1EA AE United Arab Emirates
🇧🇻 - U+1F1E7 U+1F1FB BV BOUVET ISLAND
🇧🇮 - U+1F1E7 U+1F1EE BI Burundi
🇨🇵 - U+1F1E8 U+1F1F5 CP Clipperton Island
🇨🇷 - U+1F1E8 U+1F1F7 CR Costa Rica
🇨🇺 - U+1F1E8 U+1F1FA CU Cuba
🇩🇴 - U+1F1E9 U+1F1F4 DO Dominican Republic
🇰🇳 - U+1F1F0 U+1F1F3 KN St. Kitts & Nevis
🇱🇦 - U+1F1F1 U+1F1E6 LA Laos
🇱🇧 - U+1F1F1 U+1F1E7 LB Lebanon
🇵🇦 - U+1F1F5 U+1F1E6 PA Panama
🇵🇼 - U+1F1F5 U+1F1FC PW Palau
🇸🇯 - U+1F1F8 U+1F1EF SJ SVALBARD & JAN MAYEN
🇸🇹 - U+1F1F8 U+1F1F9 ST São Tomé & Príncipe
🇸🇾 - U+1F1F8 U+1F1FE SY Syria
🐱🐶 - U+1F431 U+200D U+1F436 CATDOG FACE
2022-08-11 21:23:24 +01:00
djwisdom 37c5fd42ae Base: Add new emojis U+1FA71-73,U+1FA79
First time emoji contribution using mostly PixelPaint

https://unicode.org/charts/PDF/U1FA70.pdf
U+1FA71 - ONE-PIECE SWIMSUIT
U+1FA72 - BRIEFS
U+1FA73 - SHORTS
U+1FA79 - ADHESIVE BANDAGE
2022-08-11 20:43:53 +01:00
Beckett Normington bf53c47fd7 Base: Add a few fun emojis
This commit adds a few useful emojis to the system.

🍎 - U+1F34E RED APPLE
🍏 - U+1F34E GREEN APPLE
🍐 - U+1F350 PEAR
🍷 - U+1F377 WINE GLASS
💖 - U+1F496 SPARKLING HEART
 - U+2615 HOT BEVERAGE
 - U+2728 SPARKLES
2022-08-11 20:43:17 +01:00
Timothy Flynn d54e3a1cc0 LibTimeZone: Update to TZDB version 2022b
https://mm.icann.org/pipermail/tz-announce/2022-August/000071.html
2022-08-11 15:13:11 -04:00
Ali Mohammad Pur c90cf67dc6 Shell: Avoid StringView OOB access in Formatter ctor 2022-08-11 14:12:55 +00:00
Ali Mohammad Pur bbce061a61 Shell: Stop printing 'sh -c' commands
That's getting too spammy and too useless.
2022-08-11 14:12:55 +00:00
Filiph Sandström c14047034b Kernel: Remove leftover reference to prekernel on aarch64
This commit essentially just renames `init_prekernel_page_tables` to
`init_page_tables`.
2022-08-10 15:20:56 -04:00
MacDue 1473842b56 LibWeb: Follow image-rendering when painting image style values 2022-08-10 19:39:07 +02:00
Brian Gianforcaro 22f7e800d2 Kernel: Fix a typo and a grammar issue in code comments 2022-08-10 11:38:18 -04:00
Brian Gianforcaro 09d5360be3 Kernel: Validate the sys$alarm signal send always succeeds
Previously we were ignoring this return code, instead use MUST(..)
to make sure it always succeeds.
2022-08-10 11:38:18 -04:00
Brian Gianforcaro 00936e151e Kernel: Make failure to write coredump or perfcore a regular dmesg
This does not need to be a critical dmesg, as the system stays up
it makes more sense for it to be a normal dmesg message.

Luke mentioned this on discord, they really deserve the credit :^)

Reported-by: Luke Wilde <lukew@serenityos.org>
2022-08-10 11:38:18 -04:00
Junior Rantila 9c42a75381 HackStudio: Add fullscreen shortcut 2022-08-10 08:42:53 +01:00
Junior Rantila d40b0439d8 Terminal: Propagate more errors 2022-08-09 20:09:33 -04:00
Timothy Flynn 407a88ebf6 CI: Enable downloading the Azure remote data cache for Fuzzer builds
This cache was disabled in 3127454 because it wasn't needed and there
was a race between the builders for this cache. Then commit 0c95d99
started fuzzing the generated Unicode / TZDB data. Since then, we've
been pulling this data from the live servers instead of Azure's cache.
2022-08-09 20:06:34 -04:00
Timothy Flynn 5c0f1d5b8a CI: Add a restoration key for Azure's remote data caches
We do a similar trick for the compiler cache. This allows each builder
to separately push their local data cache (if it changed) while pulling
a shared cache, without the race outlined in commit 3127454. This is
needed for a subsequent commit which will enable this cache for Fuzzer
builds.
2022-08-09 20:06:34 -04:00
Brian Gianforcaro 2d06f6399f Kernel: Fix SMP deadlock in MM::allocate_contiguous_physical_pages
This deadlock was introduced with the creation of this API. The lock
order is such that we always need to take the page directory lock
before we ever take the MM lock.

This function violated that, as both Region creation and region
destruction require the pd and mm locks, but with the mm lock
already acquired we deadlocked with SMP mode enabled while other
threads were allocating regions.

With this change SMP boots to the desktop successfully for me,
(and then subsequently has other issues). :^)
2022-08-09 12:09:59 +02:00
thankyouverycool d11ce1d808 WindowServer: Let WindowManager set serverside effects
Menu and Window animations can now be disabled and the geometry
overlay made conditional. Shadow options are dependent on the
current theme actually supplying bitmaps, but they provide a fast
way to toggle those that do without having to edit theme files.
2022-08-09 12:08:21 +02:00
thankyouverycool 5917545633 LibGUI+LibGfx: Let Desktop::the() set widget effects
Scrolling can now be set Coarse or Smooth system-wide, Splitter
knurls and Tab accents toggled on and off, and Menu flashing
disabled.
2022-08-09 12:08:21 +02:00
thankyouverycool 1d445356b6 DisplaySettings: Add an Effects tab
Effects tab provides the UI for setting SystemEffects.
DisplaySettings is getting a bit crowded and might need a re-org
at some point, but this seems like a good home for effects while
the settings mature.
2022-08-09 12:08:21 +02:00
thankyouverycool 8b5280b5dd Base: Add icons for animation and theming options 2022-08-09 12:08:21 +02:00
thankyouverycool 841d06f676 LibGUI+WindowServer: Create IPC calls for passing SystemEffects
SystemEffects are sent to the WindowManager through
set_system_effects() and broadcast to Desktop clients with
update_system_effects(). WindowManager is reponsible for saving,
loading and rebroadcasting effects from WindowServer.ini on
config changes.
2022-08-09 12:08:21 +02:00
thankyouverycool e2318dffe3 LibGUI: Let Desktop:the() manage SystemEffects inside LibGUI
These settings might well ultimately be factored into a dedicated
settings manager, but until then, a charitable interpretation of
Desktop::the() as the desktop environment will suffice.
2022-08-09 12:08:21 +02:00
thankyouverycool 8904a61d71 LibGUI+WindowServer: Add a SystemEffects wrapper and helpers
SystemEffects provides a tidy way to work with system-wide
visual options passed through IPC.
2022-08-09 12:08:21 +02:00
Karol Kosek 9d7345d17b Chess: Import/Export chessboards using LibFileSystemAccessClient
With this change, the wpath and cpath promises as well as unveiling
user's entire home directory are no longer needed. :^)
2022-08-08 22:03:30 -04:00
MacDue 613feb1854 Base: Replace linear-gradient() pattern demo with cooler one
The previous demo didn't work that well, not due to any LibWeb
issue (same in other browsers), it just was a broken demo.

This demo shows the neat tricks you can do with linear-gradient()s
much better.
2022-08-08 21:56:08 -04:00
Matthew B. Jones 79a5a1c209 LibGUI: Correct cursor index during mouseup_event
Previously, during a m_might_drag mouse_up event, we were updating
the selection directly, which caused the selection to be accurate
but the location of the cursor index to be stale/incorrect. The
side effect of this is then future events may point to the wrong
index.

Instead, call the set_cursor function with SelectionUpdate::Set,
which handles both updating the cursor index as well as the
selection index.
2022-08-08 16:41:36 -04:00
MacDue ff6f56ef7a Base: Add linear-gradient + background-size demo 2022-08-08 22:39:06 +02:00
MacDue 4b9c0aac7a Base: Add linear-gradient list-marker demo 2022-08-08 22:39:06 +02:00
MacDue da79883b60 Base: Add the styled progress bar demo from css-tricks.com
See: https://css-tricks.com/html5-progress-element/ this is a neat
demo of a pure CSS progress bar that makes use of linear-gradients,
background-repeat, and background-size. All of which now work :^)
2022-08-08 22:39:06 +02:00
MacDue d0511ec650 LibWeb: Avoid painting background-images under opaque borders
Without this the background-image can be painted up to 8 extra
times, that contribute nothing to the final image.
2022-08-08 22:39:06 +02:00
MacDue 6a6475673f LibWeb: Convert images to common AbstractImageStyleValue base
This commit moves both the ImageStyleValue and LinearGradientStyleValue
to a common base class of AbstractImageStyleValue. This abstracts
getting the natural_width/height, loading/resolving, and painting
the image.

Now for 'free' you get:

 - Linear gradients working with the various background sizing/repeat
   properties.
 - Linear gradients working as list-markers :^) -- best feature ever!

P.s. This commit is a little large as it's tricky to make this change
incrementally without breaking things.
2022-08-08 22:39:06 +02:00
MacDue 264543b90a LibGfx: Add Size<T>::to_rounded<I>()
Currently this is only specialized for rounding to integer types.
2022-08-08 22:39:06 +02:00
Riyyi 77f0a66d2f Documentation: Add clang-format variant to EmacsConfiguration.md
Add a variant of auto formatting using clang-format that doesn't use
additional packages. It works by adding a buffer-local hook to
`'before-save` for all C++ project files.
2022-08-08 16:36:23 -04:00
demostanis 6744402dbf Base: Replace getopt with getopt_long in man page 2022-08-08 16:35:28 -04:00
MacDue 361fc56632 LibWeb: Don't allow mixed commas/no commas in rect() css values
This fixes the clip-rect-comma-002, clip-rect-comma-003, and
clip-rect-comma-004 web platform tests.
2022-08-08 14:03:29 +02:00
MacDue 9c8aa5b777 LibWeb: Fix resolution of CSS clip rect
Previously the clip rect was not relative to the top/left egdes
of the element, which lead to it being positioned incorrectly.

This fixes the clip-rect-auto-004 and clip-rect-auto-005 web
platform tests.
2022-08-08 14:03:29 +02:00
MacDue 038017ce11 LibWeb: Enable CSS clip for position: fixed elements
This fixes the clip-absolute-positioned-002 web platform test.
2022-08-08 14:03:29 +02:00
Tom 6b2e93eb7c LibWeb: Fix RectStyleValue to_string() implementation
Fix implementation of to_string() for RectStyleValue so that it can be
used by JS.
2022-08-08 12:16:36 +02:00
Liav A cf33d0b5f7 Kernel/FileSystem: Use a new debug flag for SysFS debug messages 2022-08-08 02:33:25 +00:00
MacDue a6505f6e6d LibWeb: Allow % height of a % height parent in block-formatted elements
With this you can start to see Francine's face in the CSS oil painting
(https://diana-adrianne.com/purecss-francine/)
2022-08-07 22:52:22 +02:00
MacDue 0e8dafcbb8 LibWeb: Allow absolute boxes to have a % height of a % height parent
Previously absolutely positioned boxes could only have a % height if
their parent had a absolute height (a height in pixels, em, etc).

This broke some websites/demos such as the "Francine CSS oil painting",
which starts to appear after this commit.

Francine: https://diana-adrianne.com/purecss-francine/
2022-08-07 22:52:22 +02:00
Tom 5049a56d96 LibWeb: Implement clip property
Implement clip when it is defined in the css property 'clip' as a rect
according to spec; only when the div is absolutely positioned.
2022-08-07 22:40:11 +02:00
Tom 8163ee1500 LibWeb: Use rect value in CSS clip property
When a rect value is passed to the clip property via CSS, keep it in
ComputedValues so that at a later stage can make use of it.
2022-08-07 22:40:11 +02:00
Tom b4dd477644 LibWeb: Parse rect style value
Add ability to parse a rect when it is used as the value of a style
property.
2022-08-07 22:40:11 +02:00
Tom 4d1ceaaa43 Base: Add test page for CSS clip property 2022-08-07 22:40:11 +02:00
Karol Kosek 5c4d130af5 Browser: Make Refresh action in tab context menu refresh the chosen tab
It was sending refresh requests to the current tab instead.
2022-08-07 20:49:45 +02:00
Karol Kosek 0db481c763 Browser: Make the bookmark button use an action
This merges 2 duplicated definitions (one for button, second just for
the keyboard shortcut) which also makes the button 'react' on that
shortcut. :^)
2022-08-07 20:49:45 +02:00
Karol Kosek 3b5766d078 Browser: Show bookmark and history page lists under the their buttons
Previously they were showing right under the cursor.
2022-08-07 20:49:45 +02:00
Karol Kosek 8f5968d4ad Browser: Set margins for BookmarkBarWidget
It's just what GUI::Toolbar is using. Changed this to make the bookmark
overflow button align with the bookmark button.
2022-08-07 20:49:45 +02:00
Karol Kosek d80bc2ba32 Browser: Use overflow-menu icon for hidden bookmarks the button
97b381652a started using that icon for toolbars. Let's also use it here
for the sweet system consistency!
2022-08-07 20:49:45 +02:00