Commit 35c61626 authored by dpapad's avatar dpapad Committed by Commit Bot

Bookmarks manager: Change folder icon to 16px on Mac.

This matches the raster image size and fixes blurriness on high DPI displays.

Bug: 1064806
Change-Id: I0262e6fefbe4f09ead87a9c1fbe7cd5b7a5417ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2360333
Auto-Submit: dpapad <dpapad@chromium.org>
Reviewed-by: default avatarJohn Lee <johntlee@chromium.org>
Commit-Queue: dpapad <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#806930}
parent 969db5bf
......@@ -26,7 +26,7 @@
use_base_dir="false" compress="false" type="BINDATA" />
<include name="IDR_BOOKMARKS_ITEM_JS"
file="${root_gen_dir}/chrome/browser/resources/bookmarks/item.js"
use_base_dir="false" compress="false" type="BINDATA" />
use_base_dir="false" compress="false" type="BINDATA" preprocess="true" />
<include name="IDR_BOOKMARKS_LIST_JS"
file="${root_gen_dir}/chrome/browser/resources/bookmarks/list.js"
use_base_dir="false" compress="false" type="BINDATA" />
......
......@@ -22,6 +22,12 @@
}
}
<if expr="is_macosx">
.folder-icon {
margin: 2px;
}
</if>
#website-title {
color: var(--cr-primary-text-color);
flex: 1;
......
......@@ -51,12 +51,16 @@
.folder-icon {
content: url(chrome://theme/IDR_FOLDER_CLOSED);
height: 20px;
min-width: 20px;
width: 20px;
height: var(--folder-icon-size);
min-width: var(--folder-icon-size);
width: var(--folder-icon-size);
}
<if expr="is_macosx">
.folder-icon {
--folder-icon-size: 16px;
}
@media (prefers-color-scheme: dark) {
.folder-icon {
content: url(chrome://theme/IDR_FOLDER_CLOSED_WHITE);
......@@ -65,6 +69,10 @@
</if>
<if expr="not is_macosx">
.folder-icon {
--folder-icon-size: 20px;
}
.folder-icon[open] {
content: url(chrome://theme/IDR_FOLDER_OPEN);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment