Make link color for context-control themable

When significantly changing the background color, one also needs the
ability to change the foreground color.
This change does not change the current color, only makes it possible to
change it more freely from a theme.

Change-Id: Ic4d8db8756756410e91b69a4e0fd12436cf7b770
This commit is contained in:
Ole Rehmsen
2019-05-28 17:26:17 +02:00
parent c0754b842b
commit 2bf4867059
3 changed files with 6 additions and 4 deletions

View File

@@ -155,14 +155,14 @@ limitations under the License.
content: '\A';
}
.contextControl {
background-color: var(--diff-context-control-color);
background-color: var(--diff-context-control-background-color);
border: 1px solid var(--diff-context-control-border-color);
}
.contextControl gr-button {
display: inline-block;
text-decoration: none;
--gr-button: {
color: var(--deemphasized-text-color);
color: var(--diff-context-control-color);
padding: .2em;
}
}

View File

@@ -89,7 +89,8 @@ html {
--dark-add-highlight-color: #AAF2AA;
--dark-rebased-remove-highlight-color: #F7E8B7;
--dark-rebased-add-highlight-color: #D7D7F9;
--diff-context-control-color: #fff7d4;
--diff-context-control-color: var(--deemphasized-text-color);
--diff-context-control-background-color: #fff7d4;
--diff-context-control-border-color: #f6e6a5;
--diff-tab-indicator-color: var(--deemphasized-text-color);
--diff-trailing-whitespace-indicator: #ff9ad2;

View File

@@ -36,7 +36,8 @@
--dark-add-highlight-color: rgba(0, 255, 0, 0.15);
--dark-rebased-remove-highlight-color: rgba(255, 139, 6, 0.15);
--dark-rebased-add-highlight-color: rgba(11, 255, 155, 0.15);
--diff-context-control-color: var(--table-header-background-color);
--diff-context-control-color: var(--deemphasized-text-color);
--diff-context-control-background-color: var(--table-header-background-color);
--diff-context-control-border-color: var(--border-color);
--diff-highlight-range-color: rgba(0, 100, 200, 0.5);
--diff-highlight-range-hover-color: rgba(0, 150, 255, 0.5);