Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 70661ca

Browse files
committed
Added link to demo
1 parent 68a7c13 commit 70661ca

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## A Material design LightDM Webkit2 greeter theme
2+
# [DEMO](https://fallingsnow.github.io/lightdm-webkit2-material2)
23

34
This is a theme for LightDM Webkit2 (`lightdm-webkit2-greeter`).
45

@@ -16,9 +17,10 @@ Created for Arch Linux.
1617
- Restart, shutdown, suspend, and hibernate the computer
1718
- Select session (GNOME, KDE, Xfce or other installed DE)
1819
- Select your language
20+
- Full i18n localization
1921
- 4 different types of background (trianglify, image, random-image, and zodiac)
22+
- LDAP support via lighdm's hide_users
2023
- HiDpi screen support via UI scaling
21-
- Full i18n localization
2224
- And the most important thing, A CLOCK WITH SECONDS!!!
2325

2426
### How to install

src/components/Login.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@ class Login extends React.Component {
4343
window.show_prompt = this.show_prompt.bind(this);
4444
window.show_message = this.show_message.bind(this);
4545
}
46-
changeUserName(event, index, selectedUserName) {
46+
changeUserName = (event, index, selectedUserName) => {
4747
this.props.changeSetting('userName', index, selectedUserName);
4848
if (this.getUserByName(selectedUserName).session)
4949
this.changesessionKey(null, null, this.getUserByName(selectedUserName).session);
5050
console.debug('Changed user to', selectedUserName || index);
5151
}
52-
changesessionKey(event, index, sessionKey) {
52+
changesessionKey = (event, index, sessionKey) => {
5353
this.props.changeSetting('sessionKey', index, sessionKey);
5454
console.debug('Changed session to', sessionKey);
5555
}
5656
passwordWarningStyle = {
5757
color: orange500,
5858
borderColor: orange500
5959
}
60-
updatePassword(event) {
60+
updatePassword = (event) => {
6161

6262
// Show warning if capslock is enabled
6363
if (capsLock.status) {
@@ -159,7 +159,7 @@ class Login extends React.Component {
159159
</div>
160160
<div className="form-container">
161161
{userSelect}
162-
<TextField id="password-input" floatingLabelStyle={this.state.passwordStyle} errorStyle={this.state.passwordStyle} underlineStyle={this.state.passwordStyle} fullWidth={true} floatingLabelText={< FormattedMessage id = "password" defaultMessage = "Password" />} type="password" value={this.state.password || ''} onChange={this.updatePassword.bind(this)} autoFocus={!lightdm.hide_users} errorText={this.state.passwordError} hintText={this.state.passwordHint}/>
162+
<TextField id="password-input" floatingLabelStyle={this.state.passwordStyle} errorStyle={this.state.passwordStyle} underlineStyle={this.state.passwordStyle} fullWidth={true} floatingLabelText={< FormattedMessage id = "password" defaultMessage = "Password" />} type="password" value={this.state.password || ''} onChange={this.updatePasswordy} autoFocus={!lightdm.hide_users} errorText={this.state.passwordError} hintText={this.state.passwordHint}/>
163163
<SelectField fullWidth={true} floatingLabelText={< FormattedMessage id = "session" defaultMessage = "Session" />} value={this.props.settings.sessionKey} onChange={this.changesessionKey}>
164164
{sessions}
165165
</SelectField>

0 commit comments

Comments
 (0)