fix theme for voice messages and recording

pull/1403/head
Audric Ackermann 5 years ago
parent 2bcc7be3e6
commit 766a9f9c45
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1982,7 +1982,10 @@
top: 0; top: 0;
left: 0; left: 0;
@include color-svg('../images/spinner-56.svg', $color-gray-60); @include themify($themes) {
@include color-svg('../images/spinner-56.svg', themed('textColor'));
}
z-index: 3; z-index: 3;
height: 56px; height: 56px;
width: 56px; width: 56px;
@ -2040,10 +2043,15 @@
} }
.module-spinner__circle--incoming { .module-spinner__circle--incoming {
background-color: $color-white-04; @include themify($themes) {
background-color: rgba(themed('receivedMessageText'), 0.2);
}
} }
.module-spinner__arc--incoming {
background-color: $color-white; .module-spinner__circle--outgoing {
@include themify($themes) {
background-color: rgba(themed('sentMessageText'), 0.2);
}
} }
// Module: Highlighted Message Body // Module: Highlighted Message Body
@ -2227,8 +2235,8 @@
// All media query widths have 300px added to account for the left pane // All media query widths have 300px added to account for the left pane
// And have been tweaked for smoother transitions // And have been tweaked for smoother transitions
// To limit messages with things forcing them wider, like long attachment names
.module-message__container { .module-message__container {
// To limit messages with things forcing them wider, like long attachment names
max-width: 300px; max-width: 300px;
} }

@ -410,6 +410,7 @@
font-family: $session-font-default; font-family: $session-font-default;
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;
flex-shrink: 0;
&.playback-timer { &.playback-timer {
margin-right: $session-margin-sm; margin-right: $session-margin-sm;
@ -442,8 +443,6 @@
/* ************ */ /* ************ */
$rhap_theme-color: #212121 !default; $rhap_theme-color: #212121 !default;
$rhap_background-color: rgba(0, 0, 0, 0) !default; $rhap_background-color: rgba(0, 0, 0, 0) !default;
$rhap_bar-color: #232323 !default;
$rhap_time-color: #dddddd !default;
$rhap_font-family: inherit !default; $rhap_font-family: inherit !default;
.rhap_container, .rhap_container,
@ -477,6 +476,7 @@ $rhap_font-family: inherit !default;
.rhap_current-time { .rhap_current-time {
margin: 0 5px 0 4px; margin: 0 5px 0 4px;
flex-shrink: 0;
} }
.rhap_play-pause-button { .rhap_play-pause-button {
@ -489,14 +489,21 @@ $rhap_font-family: inherit !default;
display: none; display: none;
} }
.rhap_volume-button {
@include themify($themes) {
color: subtle(themed('textColor'));
}
}
.rhap_volume-container div[role='progressbar'] { .rhap_volume-container div[role='progressbar'] {
display: none; display: none;
} }
.rhap_time { .rhap_time {
color: $rhap_time-color; @include themify($themes) {
color: subtle(themed('textColor'));
}
font-size: 12px; font-size: 12px;
width: 32px;
} }
.rhap_progress-bar { .rhap_progress-bar {
@ -505,22 +512,35 @@ $rhap_font-family: inherit !default;
z-index: 0; z-index: 0;
width: 100%; width: 100%;
height: 5px; height: 5px;
background-color: $rhap_bar-color; @include themify($themes) {
background-color: rgba(themed('textColor'), 0.3);
}
border-radius: 2px; border-radius: 2px;
} }
.rhap_progress-filled { .rhap_progress-filled {
opacity: 0.6; @include themify($themes) {
background-color: #00f782; background-color: rgba(themed('accent'), 0.6);
}
padding-left: 5px; padding-left: 5px;
left: -5px; }
// special case for light theme, outgoing message (accent color on accent color background is not readable)
.light-theme .module-message--outgoing {
.rhap_progress-filled {
@include themify($themes) {
background-color: rgba(themed('textColor'), 0.6);
}
}
} }
.rhap_download-progress { .rhap_download-progress {
height: 100%; height: 100%;
position: absolute; position: absolute;
z-index: 1; z-index: 1;
background-color: $rhap_bar-color; @include themify($themes) {
background-color: subtle(themed('textColor'));
}
border-radius: 2px; border-radius: 2px;
} }

@ -527,23 +527,6 @@
.module-spinner__circle { .module-spinner__circle {
background-color: $color-white-04; background-color: $color-white-04;
} }
.module-spinner__arc {
background-color: $color-gray-05;
}
.module-spinner__circle--incoming {
background-color: $color-white-04;
}
.module-spinner__arc--incoming {
background-color: $color-gray-05;
}
.module-spinner__circle--outgoing {
background-color: $color-white-04;
}
.module-spinner__arc--outgoing {
background-color: $color-gray-05;
}
.module-search-results__conversations-header { .module-search-results__conversations-header {
color: $color-gray-05; color: $color-gray-05;

@ -26,7 +26,7 @@ $themes: (
inputBackground: rgba($inputBackgroundColor, 0.12), inputBackground: rgba($inputBackgroundColor, 0.12),
// text // text
textColor: $black, textColor: $black,
textColorSubtle: #a0a0a0, textColorSubtle: rgba($black, 0.6),
textColorOpposite: $white, textColorOpposite: $white,
textHighlight: rgba($black, 0.2), textHighlight: rgba($black, 0.2),
// inbox // inbox
@ -76,7 +76,7 @@ $themes: (
inputBackground: rgba($inputBackgroundColor, 0.12), inputBackground: rgba($inputBackgroundColor, 0.12),
// text // text
textColor: $white, textColor: $white,
textColorSubtle: #a0a0a0, textColorSubtle: rgba($white, 0.6),
textColorOpposite: $black, textColorOpposite: $black,
textHighlight: rgba($accentDarkTheme, 0.6), textHighlight: rgba($accentDarkTheme, 0.6),
// inbox // inbox

@ -308,7 +308,7 @@ class MessageInner extends React.PureComponent<Props, State> {
<SessionIcon <SessionIcon
iconType={SessionIconType.Play} iconType={SessionIconType.Play}
iconSize={SessionIconSize.Small} iconSize={SessionIconSize.Small}
iconColor="#868686" iconColor={this.props.theme.colors.textColorSubtle}
theme={this.props.theme} theme={this.props.theme}
/> />
), ),
@ -316,7 +316,7 @@ class MessageInner extends React.PureComponent<Props, State> {
<SessionIcon <SessionIcon
iconType={SessionIconType.Pause} iconType={SessionIconType.Pause}
iconSize={SessionIconSize.Small} iconSize={SessionIconSize.Small}
iconColor="#868686" iconColor={this.props.theme.colors.textColorSubtle}
theme={this.props.theme} theme={this.props.theme}
/> />
), ),

@ -48,7 +48,7 @@ export const lightTheme: DefaultTheme = {
inputBackground: '#8E8E93331F', inputBackground: '#8E8E93331F',
// text // text
textColor: black, textColor: black,
textColorSubtle: '#a0a0a0', textColorSubtle: `${black}99`,
textColorOpposite: white, textColorOpposite: white,
textHighlight: `${black}33`, textHighlight: `${black}33`,
// inbox // inbox
@ -102,7 +102,7 @@ export const darkTheme = {
inputBackground: '#8e8e931F', inputBackground: '#8e8e931F',
// text // text
textColor: white, textColor: white,
textColorSubtle: '#a0a0a0', textColorSubtle: `${white}99`,
textColorOpposite: black, textColorOpposite: black,
textHighlight: `${accentDarkTheme}99`, textHighlight: `${accentDarkTheme}99`,
// inbox // inbox

Loading…
Cancel
Save