update text for lightmode forced to user

pull/1324/head
Audric Ackermann 5 years ago
parent a638f707cd
commit 62be54c05a
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -68,7 +68,9 @@ export class ActionsPanel extends React.Component<Props, State> {
if (currentTheme !== 'light') { if (currentTheme !== 'light') {
const message = 'Light Mode'; const message = 'Light Mode';
const messageSub = const messageSub =
'Feeling the dark side more? Just toggle the theme from the bottom-left moon icon.'; 'Whoops, who left the lights on?</br></br>\
Thats right, Session has a spiffy new light mode! Take the fresh new color palette for a spin its now the default mode.</br></br>\
Want to go back to the dark side? Just tap the moon symbol in the lower left corner of the app to switch modes.';
const hasSeenLightMode = await getItemById('hasSeenLightModeDialog'); const hasSeenLightMode = await getItemById('hasSeenLightModeDialog');
if (hasSeenLightMode?.value === true) { if (hasSeenLightMode?.value === true) {
@ -77,7 +79,6 @@ export class ActionsPanel extends React.Component<Props, State> {
} }
// force light them right now, then ask for permission // force light them right now, then ask for permission
await window.Events.setThemeSetting('light'); await window.Events.setThemeSetting('light');
// FIXME add the SUN icon
window.confirmationDialog({ window.confirmationDialog({
message, message,
messageSub, messageSub,

@ -79,11 +79,11 @@ export class SessionConfirm extends React.Component<Props> {
className={messageSubText} className={messageSubText}
html={message} html={message}
/> />
{messageSub && ( <SessionHtmlRenderer
<span className="session-confirm-sub-message subtle"> tag="span"
{messageSub} className="session-confirm-sub-message subtle"
</span> html={messageSub}
)} />
</div> </div>
<div className="session-modal__button-group"> <div className="session-modal__button-group">

Loading…
Cancel
Save