Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 49453f2

Browse files
authored
Merge pull request #6604 from SimonBrandner/task/colors-2
Color de-duplication #2
2 parents 536a9ae + 2920da8 commit 49453f2

File tree

121 files changed

+343
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+343
-359
lines changed

res/css/_common.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ html {
5353
body {
5454
font-family: $font-family;
5555
font-size: $font-15px;
56-
background-color: $primary-bg-color;
57-
color: $primary-fg-color;
56+
background-color: $background;
57+
color: $primary-content;
5858
border: 0px;
5959
margin: 0px;
6060

@@ -89,7 +89,7 @@ b {
8989
}
9090

9191
h2 {
92-
color: $primary-fg-color;
92+
color: $primary-content;
9393
font-weight: 400;
9494
font-size: $font-18px;
9595
margin-top: 16px;
@@ -142,12 +142,12 @@ textarea::placeholder {
142142

143143
input[type=text], input[type=password], textarea {
144144
background-color: transparent;
145-
color: $primary-fg-color;
145+
color: $primary-content;
146146
}
147147

148148
/* Required by Firefox */
149149
textarea {
150-
color: $primary-fg-color;
150+
color: $primary-content;
151151
}
152152

153153
input[type=text]:focus, input[type=password]:focus, textarea:focus {
@@ -173,7 +173,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
173173
.mx_textinput > input[type=search] {
174174
border: none;
175175
flex: 1;
176-
color: $primary-fg-color;
176+
color: $primary-content;
177177
}
178178

179179
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type=text],
@@ -184,7 +184,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
184184
background-color: transparent;
185185
color: $input-darker-fg-color;
186186
border-radius: 4px;
187-
border: 1px solid rgba($primary-fg-color, .1);
187+
border: 1px solid rgba($primary-content, .1);
188188
// these things should probably not be defined globally
189189
margin: 9px;
190190
}
@@ -209,7 +209,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
209209
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type=search],
210210
.mx_textinput {
211211
color: $input-darker-fg-color;
212-
background-color: $primary-bg-color;
212+
background-color: $background;
213213
border: none;
214214
}
215215
}
@@ -271,7 +271,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
271271
}
272272

273273
.mx_Dialog {
274-
background-color: $primary-bg-color;
274+
background-color: $background;
275275
color: $light-fg-color;
276276
z-index: 4012;
277277
font-weight: 300;
@@ -379,7 +379,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
379379
.mx_Dialog_content {
380380
margin: 24px 0 68px;
381381
font-size: $font-14px;
382-
color: $primary-fg-color;
382+
color: $primary-content;
383383
word-wrap: break-word;
384384

385385
a {
@@ -493,8 +493,8 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
493493
border-radius: 3px;
494494
border: 1px solid $input-border-color;
495495
padding: 9px;
496-
color: $primary-fg-color;
497-
background-color: $primary-bg-color;
496+
color: $primary-content;
497+
background-color: $background;
498498
}
499499

500500
.mx_textButton {

res/css/structures/_ContextualMenu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ limitations under the License.
3434
border-radius: 8px;
3535
box-shadow: 4px 4px 12px 0 $menu-box-shadow-color;
3636
background-color: $menu-bg-color;
37-
color: $primary-fg-color;
37+
color: $primary-content;
3838
position: absolute;
3939
font-size: $font-14px;
4040
z-index: 5001;

res/css/structures/_CreateRoom.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
width: 960px;
1919
margin-left: auto;
2020
margin-right: auto;
21-
color: $primary-fg-color;
21+
color: $primary-content;
2222
}
2323

2424
.mx_CreateRoom input,

res/css/structures/_GroupFilterPanel.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ $groupFilterPanelWidth: 56px; // only applies in this file, used for calculation
9292
}
9393

9494
.mx_GroupFilterPanel .mx_TagTile.mx_TagTile_selected_prototype {
95-
background-color: $primary-bg-color;
95+
background-color: $background;
9696
border-radius: 6px;
9797
}
9898

9999
.mx_TagTile_selected_prototype {
100100
.mx_TagTile_homeIcon::before {
101-
background-color: $primary-fg-color; // dark-on-light
101+
background-color: $primary-content; // dark-on-light
102102
}
103103
}
104104

res/css/structures/_GroupView.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ limitations under the License.
132132
width: 100%;
133133
height: 31px;
134134
overflow: hidden;
135-
color: $primary-fg-color;
135+
color: $primary-content;
136136
font-weight: bold;
137137
font-size: $font-22px;
138138
padding-left: 19px;
@@ -397,7 +397,7 @@ limitations under the License.
397397
mask-position: center;
398398
mask-size: contain;
399399
mask-image: url('$(res)/img/element-icons/room/room-summary.svg');
400-
background-color: $secondary-fg-color;
400+
background-color: $secondary-content;
401401
}
402402

403403
.mx_AccessibleButton_kind_link {
@@ -422,7 +422,7 @@ limitations under the License.
422422
mask-position: center;
423423
mask-size: 8px;
424424
mask-image: url('$(res)/img/image-view/close.svg');
425-
background-color: $secondary-fg-color;
425+
background-color: $secondary-content;
426426
}
427427
}
428428
}

res/css/structures/_LeftPanel.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ $roomListCollapsedWidth: 68px;
146146
mask-position: center;
147147
mask-size: contain;
148148
mask-repeat: no-repeat;
149-
background: $secondary-fg-color;
149+
background: $secondary-content;
150150
}
151151
}
152152

@@ -169,7 +169,7 @@ $roomListCollapsedWidth: 68px;
169169
mask-position: center;
170170
mask-size: contain;
171171
mask-repeat: no-repeat;
172-
background: $secondary-fg-color;
172+
background: $secondary-content;
173173
}
174174

175175
&.mx_LeftPanel_exploreButton_space::before {

res/css/structures/_LeftPanelWidget.scss

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

114114
&:hover .mx_LeftPanelWidget_resizerHandle {
115115
opacity: 0.8;
116-
background-color: $primary-fg-color;
116+
background-color: $primary-content;
117117
}
118118

119119
.mx_LeftPanelWidget_maximizeButton {

res/css/structures/_MainSplit.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ limitations under the License.
3838
width: 4px !important;
3939
border-radius: 4px !important;
4040

41-
background-color: $primary-fg-color;
41+
background-color: $primary-content;
4242
opacity: 0.8;
4343
}
4444
}

res/css/structures/_MatrixChat.scss

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

6565
/* not the left panel, and not the resize handle, so the roomview/groupview/... */
6666
.mx_MatrixChat > :not(.mx_LeftPanel):not(.mx_SpacePanel):not(.mx_ResizeHandle):not(.mx_LeftPanel_wrapper) {
67-
background-color: $primary-bg-color;
67+
background-color: $background;
6868

6969
flex: 1 1 0;
7070
min-width: 0;
@@ -91,7 +91,7 @@ limitations under the License.
9191

9292
content: ' ';
9393

94-
background-color: $primary-fg-color;
94+
background-color: $primary-content;
9595
opacity: 0.8;
9696
}
9797
}

res/css/structures/_NotificationPanel.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ limitations under the License.
4949
bottom: 0;
5050
left: 0;
5151
right: 0;
52-
background-color: $tertiary-fg-color;
52+
background-color: $tertiary-content;
5353
height: 1px;
5454
opacity: 0.4;
5555
content: '';
@@ -70,7 +70,7 @@ limitations under the License.
7070
}
7171

7272
.mx_NotificationPanel .mx_EventTile_roomName a {
73-
color: $primary-fg-color;
73+
color: $primary-content;
7474
}
7575

7676
.mx_NotificationPanel .mx_EventTile_avatar {
@@ -79,7 +79,7 @@ limitations under the License.
7979

8080
.mx_NotificationPanel .mx_EventTile .mx_SenderProfile,
8181
.mx_NotificationPanel .mx_EventTile .mx_MessageTimestamp {
82-
color: $primary-fg-color;
82+
color: $primary-content;
8383
font-size: $font-12px;
8484
display: inline;
8585
}
@@ -118,7 +118,7 @@ limitations under the License.
118118
}
119119

120120
.mx_NotificationPanel .mx_EventTile:hover .mx_EventTile_line {
121-
background-color: $primary-bg-color;
121+
background-color: $background;
122122
}
123123

124124
.mx_NotificationPanel .mx_EventTile_content {

0 commit comments

Comments
 (0)