Skip to content

Commit 84a0bc1

Browse files
committed
fix: Use on_surface instead of on_surface_variant if applicable
1 parent acef3eb commit 84a0bc1

File tree

21 files changed

+24
-24
lines changed

21 files changed

+24
-24
lines changed

src/calendar-app/calendar/gui/eventeditor-view/AttendeeListEditor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class AttendeeListEditor implements Component<AttendeeListEditorAttrs> {
5252
m(".flex-grow.flex.flex-column.gap-vpad.pb.pt.fit-height", { style: { width: px(attrs.width) } }, [
5353
this.renderOrganizer(attrs.model, organizer),
5454
m(".flex.flex-column.gap-vpad-s", [
55-
m("small.uppercase.b.text-ellipsis", { style: { color: theme.on_surface_variant } }, lang.get("guests_label")),
55+
m("small.uppercase.b.text-ellipsis", { style: { color: theme.on_surface } }, lang.get("guests_label")),
5656
whoModel.canModifyGuests ? this.renderGuestsInput(whoModel, attrs.logins, attrs.recipientsSearch) : null,
5757
this.renderSendUpdateCheckbox(attrs.model.editModels.whoModel),
5858
this.renderGuestList(attrs, organizer),
@@ -218,7 +218,7 @@ export class AttendeeListEditor implements Component<AttendeeListEditorAttrs> {
218218
const selected = options.find((option) => option.address === address) ?? options[0]
219219

220220
return m(".flex.col", [
221-
m("small.uppercase.pb-s.b.text-ellipsis", { style: { color: theme.on_surface_variant } }, lang.get("organizer_label")),
221+
m("small.uppercase.pb-s.b.text-ellipsis", { style: { color: theme.on_surface } }, lang.get("organizer_label")),
222222
m(Card, { style: { padding: `0` } }, [
223223
m(".flex.flex-column", [
224224
m(".flex.pl-vpad-s.pr-vpad-s", [

src/calendar-app/calendar/gui/eventeditor-view/CalendarEventEditDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class EventEditorDialog {
145145
{
146146
height: "100%",
147147
"background-color": theme.surface_container,
148-
color: theme.on_surface_variant,
148+
color: theme.on_surface,
149149
},
150150
)
151151
.addShortcut({

src/calendar-app/calendar/gui/eventeditor-view/RepeatRuleEditor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class RepeatRuleEditor implements Component<RepeatRuleEditorAttrs> {
9696
[
9797
this.hasUnsupportedRules ? this.renderUnsupportedAdvancedRulesWarning() : null,
9898
m(".flex.col", [
99-
m("small.uppercase.pb-s.b.text-ellipsis", { style: { color: theme.on_surface_variant } }, lang.getTranslationText("frequency_title")),
99+
m("small.uppercase.pb-s.b.text-ellipsis", { style: { color: theme.on_surface } }, lang.getTranslationText("frequency_title")),
100100
m(
101101
Card,
102102
{
@@ -137,7 +137,7 @@ export class RepeatRuleEditor implements Component<RepeatRuleEditorAttrs> {
137137
}
138138

139139
return m(".flex.col", [
140-
m("small.uppercase.pb-s.b.text-ellipsis", { style: { color: theme.on_surface_variant } }, lang.get("calendarRepeatStopCondition_label")),
140+
m("small.uppercase.pb-s.b.text-ellipsis", { style: { color: theme.on_surface } }, lang.get("calendarRepeatStopCondition_label")),
141141
m(
142142
Card,
143143
{
@@ -169,7 +169,7 @@ export class RepeatRuleEditor implements Component<RepeatRuleEditorAttrs> {
169169
}
170170

171171
return m(".flex.col", [
172-
m("small.uppercase.pb-s.b.text-ellipsis", { style: { color: theme.on_surface_variant } }, lang.get("interval_title")),
172+
m("small.uppercase.pb-s.b.text-ellipsis", { style: { color: theme.on_surface } }, lang.get("interval_title")),
173173
m(
174174
Card,
175175
{

src/calendar-app/calendar/gui/eventpopup/ContactPreviewView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const ActionButtons = pureComponent((contact: Contact) => {
144144
}
145145
const phoneButtonColors = {
146146
borderColor: theme.on_surface_variant,
147-
color: theme.on_surface_variant,
147+
color: theme.on_surface,
148148
}
149149

150150
const singleEmailAdress = contact.mailAddresses.length === 1

src/common/gui/SidebarSection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class SidebarSection implements Component<SidebarSectionAttrs> {
2525
{
2626
"data-testid": `section:${lang.getTestId(name)}`,
2727
style: {
28-
color: theme.on_surface_variant,
28+
color: theme.on_surface,
2929
},
3030
},
3131
[

src/common/gui/base/Expander.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class ExpanderButton implements Component<ExpanderAttrs> {
6262
`${a.isBig ? "span" : "small"}`,
6363
{
6464
style: {
65-
color: a.color || theme.on_surface_variant,
65+
color: a.color || theme.on_surface,
6666
},
6767
},
6868
a.isUnformattedLabel ? label : label.toUpperCase(),

src/common/gui/base/NavButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class NavButton implements Component<NavButtonAttrs> {
122122
ondragstart: a.dragStartHandler,
123123
style: {
124124
"font-size": a.fontSize ? px(a.fontSize) : "",
125-
color: this._draggedOver || isNavButtonSelected(a) ? theme.primary : theme.on_surface_variant,
125+
color: this._draggedOver || isNavButtonSelected(a) ? theme.primary : theme.on_surface,
126126
...(isCurrent && { background: theme.state_bg_active }),
127127
},
128128
title: lang.getTranslationText(a.label),

src/common/gui/base/buttons/BannerButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class BannerButton implements Component<BannerButtonAttrs> {
2323
class: `border-radius center ${attrs.class} ${attrs.disabled ? "disabled" : ""}`,
2424
style: {
2525
border: `2px solid ${attrs.disabled ? theme.on_surface_variant : attrs.borderColor}`,
26-
color: attrs.disabled ? theme.on_surface_variant : attrs.color,
26+
color: attrs.disabled ? theme.on_surface : attrs.color,
2727
padding: px(size.vpad_small),
2828
minWidth: "60px",
2929
},

src/common/gui/base/buttons/OutlineButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class OutlineButton implements ClassComponent<OutlineButtonAttrs> {
3131
disabled: attrs.disabled,
3232
style: {
3333
borderColor: theme.outline,
34-
color: theme.on_surface_variant,
34+
color: theme.on_surface,
3535
},
3636
class: this.resolveClasses(attrs.expanded, attrs.disabled),
3737
} as BaseButtonAttrs)

src/common/gui/base/buttons/RowButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class RowButton implements Component<RowButtonAttrs> {
2525
const attrs = vnode.attrs
2626
const label = lang.getTranslationText(attrs.label)
2727
const text = lang.getTranslationText(attrs.text ?? attrs.label)
28-
const color = attrs.selected ? theme.primary : theme.on_surface_variant
28+
const color = attrs.selected ? theme.primary : theme.on_surface
2929
return m(BaseButton, {
3030
label: attrs.label,
3131
text: m(

0 commit comments

Comments
 (0)