Modified: trunk/Source/WebInspectorUI/ChangeLog (242150 => 242151)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-02-27 21:23:03 UTC (rev 242150)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-02-27 21:24:53 UTC (rev 242151)
@@ -1,5 +1,37 @@
2019-02-27 Devin Rousso <[email protected]>
+ Web Inspector: Dark Mode: unreadable text in bezier curve editor numeric input fields
+ https://bugs.webkit.org/show_bug.cgi?id=195018
+ <rdar://problem/48378541>
+
+ Reviewed by Matt Baker.
+
+ Simplify some styles using `-webkit-*` properties instead of `[dir=ltr]`/`[dir=rtl]` selectors.
+
+ * UserInterface/Views/BezierEditor.css:
+ (.bezier-editor):
+ (.bezier-editor > .bezier-preview):
+ (.bezier-editor > .bezier-preview-timing):
+ (.bezier-editor > .bezier-container .linear-curve):
+ (.bezier-editor > .bezier-container .bezier-curve):
+ (.bezier-editor > .bezier-container .control-line):
+ (.bezier-editor > .bezier-container .control-handle):
+ (.bezier-editor > .number-input-container):
+ (.bezier-editor > .number-input-container > input):
+ (body[dir=ltr] .bezier-editor > .bezier-preview-timing): Deleted.
+ (body[dir=rtl] .bezier-editor > .bezier-preview-timing): Deleted.
+ (body[dir=ltr] .bezier-editor > .number-input-container > input): Deleted.
+ (body[dir=rtl] .bezier-editor > .number-input-container > input): Deleted.
+ (@media (prefers-color-scheme: dark)): Deleted.
+ Remove all custom styling on any <input>s, as they look fine with their default styling.
+
+ * UserInterface/Views/SpringEditor.css:
+ (.spring-editor > .spring-preview):
+ (.spring-editor > .spring-preview > div):
+ (.spring-editor > .spring-timing > div):
+
+2019-02-27 Devin Rousso <[email protected]>
+
Web Inspector: popover colors don't change when transitioning to/from dark mode
https://bugs.webkit.org/show_bug.cgi?id=195113
<rdar://problem/48444188>
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/BezierEditor.css (242150 => 242151)
--- trunk/Source/WebInspectorUI/UserInterface/Views/BezierEditor.css 2019-02-27 21:23:03 UTC (rev 242150)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/BezierEditor.css 2019-02-27 21:24:53 UTC (rev 242151)
@@ -28,7 +28,6 @@
height: 258px;
--bezier-editor-preview-translateX: 170px;
- --bezier-editor-preview-timing-margin-start: 11px;
}
body[dir=ltr] .bezier-editor {
@@ -43,7 +42,7 @@
width: calc(100% - 10px);
height: 25px;
margin: 5px 5px 0;
- border-bottom: 1px solid lightgrey;
+ border-bottom: 1px solid var(--border-color);
}
.bezier-editor > .bezier-preview > div {
@@ -56,19 +55,12 @@
.bezier-editor > .bezier-preview-timing {
position: absolute;
top: 34px;
+ -webkit-margin-start: 11px;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
- border-top: 4px solid black;
+ border-top: 4px solid var(--text-color);
}
-body[dir=ltr] .bezier-editor > .bezier-preview-timing {
- margin-left: var(--bezier-editor-preview-timing-margin-start);
-}
-
-body[dir=rtl] .bezier-editor > .bezier-preview-timing {
- margin-right: var(--bezier-editor-preview-timing-margin-start);
-}
-
.bezier-editor > .bezier-preview.animate > div,
.bezier-editor > .bezier-preview-timing.animate {
animation: bezierPreview 2.5s linear 250ms infinite;
@@ -91,7 +83,7 @@
.bezier-editor > .bezier-container .linear-curve {
fill: none;
- stroke:lightgrey;
+ stroke: var(--text-color-quaternary);
stroke-width: 2;
stroke-linecap: round;
}
@@ -98,7 +90,7 @@
.bezier-editor > .bezier-container .bezier-curve {
fill: none;
- stroke: black;
+ stroke: var(--text-color);
stroke-width: 2;
stroke-linecap: round;
}
@@ -105,7 +97,7 @@
.bezier-editor > .bezier-container .control-line {
fill: none;
- stroke: hsl(210, 100%, 49%);
+ stroke: var(--glyph-color-active);
stroke-width: 2;
stroke-linecap: round;
}
@@ -112,7 +104,7 @@
.bezier-editor > .bezier-container .control-handle {
r: 5px;
- fill: hsl(210, 100%, 49%);
+ fill: var(--glyph-color-active);
}
.bezier-editor > .bezier-container .control-handle.selected {
@@ -124,7 +116,7 @@
width: calc(100% - 10px);
margin: 0 5px;
padding-top: 7px;
- border-top: 1px solid lightgrey;
+ border-top: 1px solid var(--border-color);
}
.bezier-editor > .number-input-container > input {
@@ -131,51 +123,5 @@
width: 100%;
margin: 0 2px;
padding: 1px 0 1px;
- text-align: right;
- font-size: 12px;
- background-color: white;
- border: 1px solid hsl(0, 0%, 60%);
- border-radius: 4px;
- box-shadow: inset 0 0 1px 1px hsl(0, 0%, 89%);
- outline: none;
-
- --bezier-editor-number-input-padding-start: 1px;
+ text-align: end;
}
-
-body[dir=ltr] .bezier-editor > .number-input-container > input {
- padding-left: var(--bezier-editor-number-input-padding-start);
-}
-
-body[dir=rtl] .bezier-editor > .number-input-container > input {
- padding-right: var(--bezier-editor-number-input-padding-start);
-}
-
-@media (prefers-color-scheme: dark) {
- .bezier-editor > .bezier-preview-timing {
- border-top-color: var(--text-color-tertiary);
- }
-
- .bezier-editor > .bezier-container .bezier-curve {
- stroke: white;
- }
-
- .bezier-editor > .bezier-container .linear-curve {
- stroke: var(--text-color-tertiary);
- }
-
- .bezier-editor > .bezier-preview {
- border-bottom-color: var(--text-color-tertiary);
- }
-
- .bezier-editor > .bezier-preview > div {
- background-color: var(--glyph-color-active);
- }
-
- .bezier-editor > .bezier-container .control-handle {
- fill: var(--glyph-color-active);
- }
-
- .bezier-editor > .bezier-container .control-line {
- stroke: var(--glyph-color-active);
- }
-}
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpringEditor.css (242150 => 242151)
--- trunk/Source/WebInspectorUI/UserInterface/Views/SpringEditor.css 2019-02-27 21:23:03 UTC (rev 242150)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpringEditor.css 2019-02-27 21:24:53 UTC (rev 242151)
@@ -33,7 +33,7 @@
width: calc(100% - 10px);
height: 25px;
margin: 5px var(--spring-editor-horizontal-margin) 0;
- border-bottom: 1px solid lightgrey;
+ border-bottom: 1px solid var(--border-color);
}
.spring-editor > .spring-preview > div {
@@ -40,7 +40,7 @@
position: relative;
width: 20px;
height: 20px;
- background-color: var(--selected-background-color);
+ background-color: var(--glyph-color-active);
border-radius: 50%;
}
@@ -57,7 +57,7 @@
width: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
- border-top: 4px solid black;
+ border-top: 4px solid var(--text-color);
transition-timing-function: linear;
}