Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Use --theme-icon-* colors for all Debugger icons (#7743, #7936) (#7939)
Browse files Browse the repository at this point in the history
  • Loading branch information
Florens Verschelde authored and darkwing committed Feb 12, 2019
1 parent f39173f commit e67b519
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 26 deletions.
2 changes: 1 addition & 1 deletion images/arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 13 additions & 16 deletions packages/devtools-components/src/tree.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,36 +55,33 @@
}

.tree-node button.arrow {
background:url(/images/arrow.svg) no-repeat;
background-size:contain;
background-position:center center;
mask: url(/images/arrow.svg) no-repeat center;
mask-size: 10px;
vertical-align: -1px;
width: 10px;
height: 10px;
border:0;
padding:0;
border: 0;
padding: 0;
margin-inline-start: 1px;
margin-inline-end: 4px;
transform: rotate(-90deg);
transform-origin: center center;
transition: transform 0.125s ease;
align-self: center;
-moz-context-properties: fill;
fill: var(--theme-splitter-color, #9B9B9B);
transition: transform 125ms var(--animation-curve);
background-color: var(--theme-icon-dimmed-color);
}

html[dir="rtl"] .tree-node button.arrow {
transform: rotate(90deg);
.tree-node button.arrow:not(.expanded) {
transform: rotate(-90deg);
}

.tree-node button.arrow.expanded.expanded {
transform: rotate(0deg);
}
html[dir="rtl"] .tree-node button:not(.expanded) {
transform: rotate(90deg);
}

.tree .tree-node.focused {
color: white;
background-color: var(--theme-selection-background, #0a84ff);
}

.tree-node.focused button.arrow {
fill: currentColor;
background-color: currentColor;
}
12 changes: 6 additions & 6 deletions packages/devtools-reps/src/reps/reps.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ button.open-inspector {
margin: 0 4px;
padding: 0;
border: none;
background-color: var(--comment-node-color);
background-color: var(--theme-icon-color);
cursor: pointer;
}

Expand All @@ -260,7 +260,7 @@ button.open-inspector {
.objectBox-textNode:hover .open-inspector,
.open-accessibility-inspector:hover,
.open-inspector:hover {
background-color: var(--theme-highlight-blue);
background-color: var(--theme-icon-checked-color);
}

/******************************************************************************/
Expand All @@ -269,14 +269,14 @@ button.open-inspector {
button.jump-definition {
mask: url(/images/jump-definition.svg) no-repeat;
display: inline-block;
background-color: var(--comment-node-color);
background-color: var(--theme-icon-color);
height: 16px;
margin-left: 0.25em;
vertical-align: middle;
}

.jump-definition:hover {
background-color: var(--theme-highlight-blue);
background-color: var(--theme-icon-checked-color);
}

/******************************************************************************/
Expand All @@ -285,14 +285,14 @@ button.jump-definition {
button.invoke-getter {
mask: url(/images/input.svg) no-repeat;
display: inline-block;
background-color: var(--comment-node-color);
background-color: var(--theme-icon-color);
height: 10px;
vertical-align: middle;
border:none;
}

.invoke-getter:hover {
background-color: var(--theme-highlight-blue);
background-color: var(--theme-icon-checked-color);
}

/******************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}

.source-footer > .commands > .blackboxed > .img.blackBox {
background-color: var(--theme-highlight-blue);
background-color: var(--theme-icon-checked-color);
}

.source-footer .blackbox-summary,
Expand Down
2 changes: 1 addition & 1 deletion src/components/SecondaryPanes/CommandBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ html[dir="rtl"] .command-bar {
}

.command-bar .active .disable-pausing {
background-color: var(--theme-highlight-blue);
background-color: var(--theme-icon-checked-color);
}

.bottom {
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/ResultList.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}

.result-list li .result-item-icon {
background-color: var(--theme-comment);
background-color: var(--theme-icon-dimmed-color);
}

.result-list li .icon {
Expand Down

0 comments on commit e67b519

Please sign in to comment.