Skip to content

Commit 389ebc3

Browse files
committed
prefix material 2 palette colors with a comment for transforms
1 parent 8702a6c commit 389ebc3

File tree

13 files changed

+29
-29
lines changed

13 files changed

+29
-29
lines changed

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/graph/graph_op_component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ limitations under the License.
3131
padding: 2px 6px;
3232
text-align: right;
3333
width: 200px;
34-
$grey-600: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 600);
34+
$grey-600: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 600);
3535
@include tb-dark-theme {
3636
box-shadow: 1px 3px $grey-600;
3737
}

tensorboard/webapp/metrics/views/main_view/main_view_component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ mat-button-toggle-group.filter-view {
168168

169169
&.checked {
170170
@include tb-theme-background-prop(background-color, selected-button);
171-
border-color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 300);
171+
border-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 300);
172172
}
173173

174174
::ng-deep .mat-button-wrapper {

tensorboard/webapp/metrics/views/main_view/pinned_view_component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ mat-icon {
6565

6666
.new-card-pinned {
6767
animation: pinned-view-fade-out 3s linear;
68-
background: /*m2*/ mat.get-color-from-palette(mat.$red-palette, 500);
68+
background: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$red-palette, 500);
6969
border-radius: 5px;
7070
color: #fff;
7171
display: inline-block;

tensorboard/webapp/metrics/views/metrics_container.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ limitations under the License.
2626

2727
.notice {
2828
background-color: rgba(
29-
/*m2*/ mat.get-color-from-palette(mat.$yellow-palette, 200),
29+
/*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$yellow-palette, 200),
3030
0.85
3131
);
32-
$yellow-500: /*m2*/ mat.get-color-from-palette(mat.$yellow-palette, 500);
32+
$yellow-500: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$yellow-palette, 500);
3333
border-bottom: 1px solid $yellow-500;
3434
color: map-get($tb-foreground, text);
3535
display: block;

tensorboard/webapp/metrics/views/right_pane/scalar_column_editor/scalar_column_editor_component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $_accent: map-get(/*m2*/ mat.get-color-config($tb-theme), accent);
3939
}
4040

4141
.highlighted {
42-
background-color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 200);
42+
background-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 200);
4343
}
4444

4545
.highlight-bottom {

tensorboard/webapp/notification_center/_views/notification_center_component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ limitations under the License.
2121

2222
.red-dot {
2323
$_dim: 10px;
24-
background-color: /*m2*/ mat.get-color-from-palette(mat.$red-palette, 700);
24+
background-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$red-palette, 700);
2525
border-radius: $_dim * 0.5;
2626
height: $_dim;
2727
position: absolute;
@@ -52,7 +52,7 @@ limitations under the License.
5252
}
5353

5454
.category-icon {
55-
color: /*m2*/ mat.get-color-from-palette(mat.$blue-palette, 700);
55+
color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$blue-palette, 700);
5656
height: 15px;
5757
margin-right: 6px;
5858
vertical-align: middle;

tensorboard/webapp/theme/_tb_theme.template.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ $tb-theme: /*m2*/ mat.define-light-theme(
5454
$tb-foreground: map_merge(
5555
mat.$light-theme-foreground-palette,
5656
(
57-
text: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 900),
58-
secondary-text: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 700),
59-
disabled-text: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 600),
57+
text: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 900),
58+
secondary-text: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 700),
59+
disabled-text: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 600),
6060
// TB specific variable.
6161
border: #ebebeb,
62-
link: /*m2*/ mat.get-color-from-palette(mat.$blue-palette, 700),
62+
link: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$blue-palette, 700),
6363
link-visited: /*m2*/ mat.get-color-from-palette(mat.$purple-palette, 700),
6464
)
6565
);
@@ -109,8 +109,8 @@ $tb-dark-foreground: map_merge(
109109
map-get(/*m2*/ mat.get-color-config($tb-dark-theme), foreground),
110110
(
111111
border: #555,
112-
disabled-text: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 700),
113-
link: /*m2*/ mat.get-color-from-palette(mat.$blue-palette, 400),
112+
disabled-text: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 700),
113+
link: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$blue-palette, 400),
114114
link-visited: /*m2*/ mat.get-color-from-palette(mat.$purple-palette, 300),
115115
)
116116
);

tensorboard/webapp/theme/_variable.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818

1919
$tb-primary: /*m2*/ mat.define-palette($tf-orange, 700, 400, 800);
2020
$tb-accent: /*m2*/ mat.define-palette($tf-orange);
21-
$tb-warn: /*m2*/ mat.define-palette(mat.$red-palette);
21+
$tb-warn: /*m2*/ mat.define-palette(/*m2$*/ mat.$red-palette);
2222

2323
$tb-dark-primary: /*m2*/ mat.define-palette($tf-orange, 800, 600, 900);
2424
$tb-dark-accent: $tb-dark-primary;

tensorboard/webapp/widgets/card_fob/card_fob_component.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ limitations under the License.
2121

2222
.fob {
2323
display: inline-flex;
24-
background-color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 300);
24+
background-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 300);
2525
border-radius: 25px;
2626
padding: 2px 2px 2px 4px;
2727
font-size: 11px;
@@ -50,7 +50,7 @@ limitations under the License.
5050
&.prospective {
5151
align-items: center;
5252
box-sizing: border-box;
53-
border: 1px dashed /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 500);
53+
border: 1px dashed /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 500);
5454
font-weight: bold;
5555
height: 17px;
5656
}
@@ -61,7 +61,7 @@ span {
6161
display: inline-block;
6262

6363
@include tb-dark-theme {
64-
color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 700);
64+
color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 700);
6565
}
6666
}
6767

@@ -84,17 +84,17 @@ button {
8484
}
8585

8686
@include tb-dark-theme {
87-
color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 700);
87+
color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 700);
8888
}
8989
}
9090

9191
button:hover {
92-
background-color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 500);
93-
color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 200);
92+
background-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 500);
93+
color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 200);
9494
cursor: pointer;
9595

9696
@include tb-dark-theme {
97-
background-color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 700);
98-
color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 300);
97+
background-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 700);
98+
color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 300);
9999
}
100100
}

tensorboard/webapp/widgets/content_wrapping_input/content_wrapping_input_component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ limitations under the License.
4242
}
4343

4444
&.high-contrast .container {
45-
border-color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 400);
45+
border-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 400);
4646

4747
&:hover {
48-
border-color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 600);
48+
border-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 600);
4949
}
5050
}
5151
}

tensorboard/webapp/widgets/data_table/column_selector_component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ limitations under the License.
8787

8888
&.selected {
8989
background-color: /*m2*/ mat.get-color-from-palette(
90-
mat.$gray-palette,
90+
mat.$grey-palette,
9191
200
9292
);
9393

9494
@include tb-dark-theme {
9595
background-color: /*m2*/ mat.get-color-from-palette(
96-
mat.$gray-palette,
96+
mat.$grey-palette,
9797
400
9898
);
9999
}

tensorboard/webapp/widgets/data_table/header_cell_component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ $_icon_padding: 4px;
7979
}
8080

8181
.highlight {
82-
background-color: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 200);
82+
background-color: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 200);
8383
}
8484

8585
.highlight-border-right {

tensorboard/webapp/widgets/line_chart_v2/sub_view/line_chart_axis_view.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ text {
183183
}
184184
}
185185

186-
$border: /*m2*/ mat.get-color-from-palette(mat.$gray-palette, 500);
186+
$border: /*m2*/ mat.get-color-from-palette(/*m2$*/ mat.$grey-palette, 500);
187187
$_border-style: 1px solid $border;
188188

189189
.x-axis .major-label {

0 commit comments

Comments
 (0)