mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
UI: Add a default CSS file for internal Ladybird pages
In order to maintain a consistent look and feel between internal about: pages going forward, let's use a central CSS file to define Ladybird colors and some common form control styles.
This commit is contained in:
parent
5f0f97b3cc
commit
a69ecc3943
Notes:
github-actions[bot]
2025-03-22 16:29:07 +00:00
Author: https://github.com/trflynn89
Commit: a69ecc3943
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4036
2 changed files with 186 additions and 1 deletions
|
@ -61,17 +61,23 @@ list(TRANSFORM 48x48_ICONS PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/icons/48x48/
|
|||
list(TRANSFORM 128x128_ICONS PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/icons/128x128/")
|
||||
list(TRANSFORM BROWSER_ICONS PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/icons/browser/")
|
||||
|
||||
set(INTERNAL_RESOURCES
|
||||
ladybird.css
|
||||
)
|
||||
list(TRANSFORM INTERNAL_RESOURCES PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/ladybird/")
|
||||
|
||||
set(ABOUT_PAGES
|
||||
about.html
|
||||
newtab.html
|
||||
processes.html
|
||||
)
|
||||
list(TRANSFORM ABOUT_PAGES PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/ladybird/about-pages/")
|
||||
|
||||
set(WEB_TEMPLATES
|
||||
directory.html
|
||||
error.html
|
||||
version.html
|
||||
)
|
||||
list(TRANSFORM ABOUT_PAGES PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/ladybird/about-pages/")
|
||||
list(TRANSFORM WEB_TEMPLATES PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/ladybird/templates/")
|
||||
|
||||
set(THEMES
|
||||
|
@ -156,6 +162,10 @@ function(copy_resources_to_build base_directory bundle_target)
|
|||
DESTINATION ${base_directory} TARGET ${bundle_target}
|
||||
)
|
||||
|
||||
copy_resource_set(ladybird RESOURCES ${INTERNAL_RESOURCES}
|
||||
DESTINATION ${base_directory} TARGET ${bundle_target}
|
||||
)
|
||||
|
||||
copy_resource_set(ladybird/about-pages RESOURCES ${ABOUT_PAGES}
|
||||
DESTINATION ${base_directory} TARGET ${bundle_target}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue