Skip to content

Commit 5743843

Browse files
Vivian Lijwunderl
andauthored
Add high contrast rules for Minecraft/inverted toolbox (microsoft#7461)
* Add inverted toolbox high contrast rules * Remove useless rules * Update theme/highcontrast.less Co-authored-by: Joey Wunderlich <jwunderl@users.noreply.github.com> * Fix to work with all targets * Remove gradient from home screen header Co-authored-by: Joey Wunderlich <jwunderl@users.noreply.github.com>
1 parent fe70ada commit 5743843

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

theme/highcontrast.less

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@
115115
}
116116
}
117117

118+
.pxtToolbox {
119+
.blocklyTreeRow:not(.blocklyTreeSelected) {
120+
background-color: @HCblocklyToolboxColor !important;
121+
}
122+
}
123+
118124
#monacoEditor .monacoDraggableBlock {
119125
background: none !important;
120126

@@ -156,6 +162,11 @@
156162
stroke-width: 4px;
157163
stroke: @HCblocklyTreeLabelColor;
158164
}
165+
166+
.blocklyFlyoutButton .blocklyText {
167+
fill: @HCtextColor !important;
168+
}
169+
159170
.monacoFlyout {
160171
background: @HCblocklySvgColor !important;
161172
border-right: 4px solid @HCtextColor !important;
@@ -170,6 +181,7 @@
170181

171182
.blocklyFlyoutButtonBackground {
172183
stroke: @HCtextColor !important;
184+
fill: transparent !important;
173185
}
174186

175187
/* Main editor areas */
@@ -185,7 +197,7 @@
185197
}
186198
}
187199
svg.blocklySvg {
188-
background-color: @HCblocklySvgColor !important;
200+
background: @HCblocklySvgColor !important;
189201
}
190202

191203
.blocklyMainBackground {
@@ -223,9 +235,9 @@
223235
}
224236
}
225237
#mainmenu.inverted, #homemenu.inverted {
226-
background-color: @HCmainMenuTextColor !important;
227238
color: @HCmainMenuBackground !important;
228239
border-bottom: 4px solid @HCtextColor;
240+
background: @HCmainMenuTextColor !important;
229241

230242
.ui.item {
231243
color: @HCmainMenuBackground;
@@ -459,6 +471,14 @@
459471
}
460472
}
461473
}
474+
.ui.card.link.newprojectcard{
475+
background: darken(@primaryColor, 20%) !important;
476+
color: white;
477+
}
478+
479+
.ui.image~.content {
480+
background: rgba(0,0,0,.75) !important;
481+
}
462482

463483
.ui.form .content .description {
464484
color: @HCtextColor;
@@ -734,4 +754,4 @@
734754
background: transparent !important;
735755
border-top: 0px;
736756
}
737-
}
757+
}

theme/themes/pxt/views/card.overrides

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ a.ui.card:focus,
245245
top: 2rem;
246246
left: 1rem;
247247
width: 2rem;
248-
height: 1.5rem;
248+
height: 1.5rem;
249249
}
250250
}
251251

0 commit comments

Comments
 (0)