1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibWeb: Use resource scheme for icons in internal pages

This commit is contained in:
Bastiaan van der Plaat 2023-12-26 10:12:14 +01:00 committed by Tim Flynn
parent 44d623d588
commit b39d99cf2f
Notes: sideshowbarker 2024-07-16 22:26:05 +09:00
7 changed files with 4 additions and 23 deletions

View file

@ -28,13 +28,13 @@
background-size: contain;
}
.folder {
background-image: url('@resource_directory_url@/icons/32x32/filetype-folder.png');
background-image: url('resource://icons/32x32/filetype-folder.png');
}
.file {
background-image: url('@resource_directory_url@/icons/32x32/filetype-unknown.png');
background-image: url('resource://icons/32x32/filetype-unknown.png');
}
.open-parent {
background-image: url('@resource_directory_url@/icons/16x16/open-parent-directory.png');
background-image: url('resource://icons/16x16/open-parent-directory.png');
}
</style>
</head>

View file

@ -16,7 +16,7 @@
</head>
<body>
<header>
<img src="@resource_directory_url@/icons/32x32/msgbox-warning.png" alt="Warning" width="24" height="24">
<img src="resource://icons/32x32/msgbox-warning.png" alt="Warning" width="24" height="24">
<h1>Failed to load @failed_url@</h1>
</header>
</body>