Slider time instantaneous, minor updates

pull/738/head
Vincent 5 years ago
parent eb70708fec
commit 13be2a7b7b

@ -940,8 +940,8 @@ label {
.session-id-section { .session-id-section {
display: flex; display: flex;
align-items: center;
flex-direction: column; flex-direction: column;
justify-content: center;
.panel-text-divider { .panel-text-divider {
margin-top: 35px; margin-top: 35px;
@ -1200,7 +1200,7 @@ label {
.discussion-container { .discussion-container {
.module-message { .module-message {
font-family: "SF Pro Text"; font-family: 'SF Pro Text';
border-radius: 5px; border-radius: 5px;
} }
} }
@ -1273,9 +1273,6 @@ label {
border-color: $session-color-white; border-color: $session-color-white;
} }
label:before {
transition: all $session-transition-duration ease;
}
} }
.user-details-dialog { .user-details-dialog {
.session-id-editable { .session-id-editable {

@ -131,14 +131,9 @@ export class DevicePairingDialog extends React.Component<Props, State> {
} }
public renderQrCodeView() { public renderQrCodeView() {
const theme = window.Events.getThemeSetting();
const requestReceived = this.hasReceivedRequests(); const requestReceived = this.hasReceivedRequests();
const title = window.i18n('pairingDevice'); const title = window.i18n('pairingDevice');
// Foreground equivalent to .session-modal background color
const bgColor = 'rgba(0, 0, 0, 0)';
const fgColor = theme === 'dark' ? '#FFFFFF' : '#1B1B1B';
return ( return (
<SessionModal title={title} onOk={() => null} onClose={this.closeDialog}> <SessionModal title={title} onOk={() => null} onClose={this.closeDialog}>
<div className="session-modal__centered"> <div className="session-modal__centered">
@ -149,11 +144,9 @@ export class DevicePairingDialog extends React.Component<Props, State> {
</small> </small>
<div className="spacer-lg" /> <div className="spacer-lg" />
<div id="qr"> <div className="qr-image">
<QRCode <QRCode
value={window.textsecure.storage.user.getNumber()} value={window.textsecure.storage.user.getNumber()}
bgColor={bgColor}
fgColor={fgColor}
level="L" level="L"
/> />
</div> </div>

@ -217,7 +217,7 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
return ( return (
<div className="session-settings"> <div className="session-settings">
<SettingsHeader <SettingsHeader
disableLinkDeviceButton={shouldRenderPasswordLock} showLinkDeviceButton={!shouldRenderPasswordLock}
category={category} category={category}
/> />
{shouldRenderPasswordLock ? ( {shouldRenderPasswordLock ? (

@ -5,11 +5,13 @@ import { SessionSettingCategory, SettingsViewProps } from './SessionSettings';
import { SessionButton } from '../SessionButton'; import { SessionButton } from '../SessionButton';
interface Props extends SettingsViewProps { interface Props extends SettingsViewProps {
showLinkDeviceButton: boolean | null;
disableLinkDeviceButton: boolean | null; disableLinkDeviceButton: boolean | null;
} }
export class SettingsHeader extends React.Component<Props, any> { export class SettingsHeader extends React.Component<Props, any> {
public static defaultProps = { public static defaultProps = {
showLinkDeviceButton: false,
disableLinkDeviceButton: true, disableLinkDeviceButton: true,
}; };
@ -64,7 +66,9 @@ export class SettingsHeader extends React.Component<Props, any> {
? `${categoryTitlePrefix.slice(0, -1)} Settings` ? `${categoryTitlePrefix.slice(0, -1)} Settings`
: `${categoryTitlePrefix} Settings`; : `${categoryTitlePrefix} Settings`;
const showSearch = false; const showSearch = false;
const showAddDevice = category === SessionSettingCategory.Devices; const showAddDevice =
category === SessionSettingCategory.Devices &&
this.props.showLinkDeviceButton;
return ( return (
<div className="session-settings-header"> <div className="session-settings-header">

Loading…
Cancel
Save