Skip to content

Commit

Permalink
Merge pull request #507 from xou816/development
Browse files Browse the repository at this point in the history
0.3.3
  • Loading branch information
xou816 authored Mar 29, 2022
2 parents 5b0e737 + eb347ae commit 8fe75ea
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 87 deletions.
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Nicolas Fella
Fridolin Weisser
Jan Przebor
Warren Hu
bbb651
bbb651
Julius Rüberg
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spot"
version = "0.3.2"
version = "0.3.3"
edition = "2018"
license = "MIT"

Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ Based on [librespot](https://github.com/librespot-org/librespot/).

## Installing

| Package | Maintainer | Repo |
| ------- | ---------- | ---- |
| <a href='https://flathub.org/apps/details/dev.alextren.Spot'><img width='130' alt='Download on Flathub' src='https://flathub.org/assets/badges/flathub-badge-en.png'/></a> | xou816 | https://github.com/flathub/dev.alextren.Spot |
| <a href='https://snapcraft.io/spot'><img width='130' alt="Get it from the Snap Store" src="https://snapcraft.io/static/images/badges/en/snap-store-black.svg"></a> | popey | https://github.com/popey/spot-snap |
| <a href='https://aur.archlinux.org/packages/spot-client/'><img alt="AUR version" src="https://img.shields.io/aur/version/spot-client"></a> | dpeukert | https://gitlab.com/dpeukert/pkgbuilds/tree/main/spot-client |

<a href='https://flathub.org/apps/details/dev.alextren.Spot'><img width='130' alt='Download on Flathub' src='https://flathub.org/assets/badges/flathub-badge-en.png'/></a>

## Usage notes

Expand Down
11 changes: 11 additions & 0 deletions data/dev.alextren.Spot.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@
<image>https://raw.githubusercontent.com/xou816/spot/master/data/appstream/3.png</image>
</screenshot>
</screenshots>
<release version="0.3.3" date="2022-03-29">
<description>
<p>
What's new:
</p>
<ul>
<li>login dialog now uses a password entry (thanks @Toorero!)</li>
<li>fix a startup crash with some locales</li>
</ul>
</description>
</release>
<release version="0.3.2" date="2022-03-27">
<description>
<p>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project(
'spot',
version: '0.3.2',
version: '0.3.3',
meson_version: '>= 0.50.0',
default_options: ['warning_level=2', 'buildtype=release'],
)
Expand Down
42 changes: 21 additions & 21 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -259,97 +259,97 @@ msgstr "{} de {}"

#: src/app/components/navigation/home.rs:32
msgid "Unnamed playlist"
msgstr ""
msgstr "Liste de lecture sans titre"

#. translators: This is a sidebar entry to browse to saved playlists.
#: src/app/components/navigation/home.rs:104
msgid "All Playlists"
msgstr ""
msgstr "Toutes les listes de lecture"

#: src/app/components/selection/component.rs:66
msgid "Tracks saved!"
msgstr ""
msgstr "Pistes enregistrées !"

#. translators: This is a menu entry.
#: src/app/components/user_menu/user_menu.rs:65
msgid "Preferences"
msgstr ""
msgstr "Préférences"

#: src/main.rs:81
msgid "Failed to open link!"
msgstr ""
msgstr "Échec de l'ouverture du lien."

#. Header for a group of preference items regarding audio
#: src/app/components/settings/settings.ui:13
msgid "Audio"
msgstr ""
msgstr "Audio"

#. Title for an item in preferences
#: src/app/components/settings/settings.ui:16
msgid "Audio Backend"
msgstr ""
msgstr "Gestionnaire de l'audio"

#. Title for an item in preferences
#: src/app/components/settings/settings.ui:29
msgid "ALSA Device"
msgstr ""
msgstr "Appareil ALSA"

#. Description for the item (ALSA Device) in preferences
#: src/app/components/settings/settings.ui:30
msgid "Applied only if audio backend is ALSA"
msgstr ""
msgstr "Ne s'applique que si ALSA est sélectionné"

#. Title for an item in preferences
#: src/app/components/settings/settings.ui:40
msgid "Audio Quality"
msgstr ""
msgstr "Qualité du flux audio"

#: src/app/components/settings/settings.ui:44
msgid "Normal"
msgstr ""
msgstr "Normale"

#: src/app/components/settings/settings.ui:45
msgid "High"
msgstr ""
msgstr "Élevée"

#: src/app/components/settings/settings.ui:46
msgid "Very high"
msgstr ""
msgstr "Très élevée"

#. Header for a group of preference items regarding the application's appearance
#: src/app/components/settings/settings.ui:56
msgid "Appearance"
msgstr ""
msgstr "Apparence"

#. Title for an item in preferences
#: src/app/components/settings/settings.ui:59
msgid "Theme"
msgstr ""
msgstr "Thème"

#: src/app/components/settings/settings.ui:63
msgid "Light"
msgstr ""
msgstr "Clair"

#: src/app/components/settings/settings.ui:64
msgid "Dark"
msgstr ""
msgstr "Sombre"

#. Header for a group of preference items regarding network
#: src/app/components/settings/settings.ui:74
msgid "Network"
msgstr ""
msgstr "Réseau"

#. Title for an item in preferences
#: src/app/components/settings/settings.ui:77
msgid "Access Point Port"
msgstr ""
msgstr "Port du point d'accès"

#. Longer description for an item (Access Point Port) in preferences
#: src/app/components/settings/settings.ui:78
msgid "Port used for connections to Spotify's Access Point. Set to 0 if any port is fine."
msgstr ""
msgstr "Port utilisé pour se connecter au point d'accès de Spotify. Laisser la valeur à 0 pour gérer ce paramètre automatiquement. "

#: src/app/components/selection/selection_toolbar.ui:90
msgid "Save to library"
msgstr ""
msgstr "Enregistrer dans la bibliothèque"

2 changes: 1 addition & 1 deletion po/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ msgstr "Usuń z kolejki"
#. translators: This is part of a larger text that says "Add to <playlist name>". This text should be as short as possible.
#: src/app/components/labels.rs:21
msgid "Add to {}"
msgstr "Dodaj do"
msgstr "Dodaj do {}"

#. translators: This notification shows up right after login if the password could not be stored in the keyring (that is, GNOME's keyring aka seahorse, or any other libsecret compliant secret store).
#: src/app/components/login/login_model.rs:56
Expand Down
15 changes: 5 additions & 10 deletions po/spot.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: spot\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-13 13:00-0400\n"
"POT-Creation-Date: 2022-03-28 00:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -300,27 +300,22 @@ msgid "Login to Spotify Premium"
msgstr ""

#. Placeholder for the username field
#: src/app/components/login/login.ui:64
#: src/app/components/login/login.ui:72
msgid "Username"
msgstr ""

#. Placeholder for the password field
#: src/app/components/login/login.ui:72
#: src/app/components/login/login.ui:89
msgid "Password"
msgstr ""

#. This information is shown when Caps Lock is enabled.
#: src/app/components/login/login.ui:95
msgid "Caps Lock is enabled!"
msgstr ""

#. This error is shown when authentication fails.
#: src/app/components/login/login.ui:126
#: src/app/components/login/login.ui:114
msgid "Authentication failed!"
msgstr ""

#. Log in button label
#: src/app/components/login/login.ui:141
#: src/app/components/login/login.ui:129
msgid "Log in"
msgstr ""

Expand Down
11 changes: 1 addition & 10 deletions src/app/components/login/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ mod imp {
#[template_child]
pub login_button: TemplateChild<gtk::Button>,

#[template_child]
pub caps_lock_info_container: TemplateChild<gtk::Revealer>,

#[template_child]
pub auth_error_container: TemplateChild<gtk::Revealer>,
}
Expand Down Expand Up @@ -87,8 +84,7 @@ impl LoginWindow {
let controller = gtk::EventControllerKey::new();
controller.set_propagation_phase(gtk::PropagationPhase::Capture);
controller.connect_key_pressed(
clone!(@weak self as _self => @default-return gtk::Inhibit(false), move |_, key, _, modifier| {
_self.show_caps_lock_info((modifier == gdk::ModifierType::LOCK_MASK) ^ (key == gdk::Key::Caps_Lock));
clone!(@weak self as _self => @default-return gtk::Inhibit(false), move |_, key, _, _| {
if key == gdk::Key::Return {
_self.submit(&on_submit_clone);
gtk::Inhibit(true)
Expand All @@ -111,11 +107,6 @@ impl LoginWindow {
widget.auth_error_container.set_reveal_child(shown);
}

fn show_caps_lock_info(&self, shown: bool) {
let widget = imp::LoginWindow::from_instance(self);
widget.caps_lock_info_container.set_reveal_child(shown);
}

fn submit<SubmitFn>(&self, on_submit: &SubmitFn)
where
SubmitFn: Fn(&str, &str),
Expand Down
58 changes: 23 additions & 35 deletions src/app/components/login/login.ui
Original file line number Diff line number Diff line change
Expand Up @@ -59,50 +59,38 @@
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkEntry" id="username">
<property name="primary-icon-name">avatar-default-symbolic</property>
<property name="placeholder-text" translatable="yes" comments="Placeholder for the username field">Username</property>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">4</property>
<child>
<object class="GtkImage" id="username-icon">
<property name="icon-name">avatar-default-symbolic</property>
</object>
</child>
<child>
<object class="GtkEntry" id="username">
<property name="placeholder-text" translatable="yes" comments="Placeholder for the username field">Username</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkEntry" id="password">
<property name="visibility">0</property>
<property name="invisible-char">●</property>
<property name="primary-icon-name">dialog-password-symbolic</property>
<property name="placeholder-text" translatable="yes" comments="Placeholder for the password field">Password</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkRevealer" id="caps_lock_info_container">
<property name="vexpand">1</property>
<property name="transition-type">slide-up</property>
<property name="child">
<object class="GtkBox">
<property name="spacing">8</property>
<property name="orientation">horizontal</property>
<property name="spacing">4</property>
<child>
<object class="GtkImage">
<property name="halign">center</property>
<property name="valign">start</property>
<property name="margin-top">2</property>
<property name="vexpand">1</property>
<property name="icon-name">dialog-information-symbolic</property>
<object class="GtkImage" id="password-icon">
<property name="icon-name">dialog-password-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes" comments="This information is shown when Caps Lock is enabled.">Caps Lock is enabled!</property>
<property name="wrap">1</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
</object>
<object class="GtkPasswordEntry" id="password">
<property name="show-peek-icon">1</property>
<property name="placeholder-text" translatable="yes" comments="Placeholder for the password field">Password</property>
</object>
</child>
</object>
</property>
</child>
</object>
</child>
<child>
Expand Down Expand Up @@ -154,4 +142,4 @@
</object>
</child>
</template>
</interface>
</interface>

0 comments on commit 8fe75ea

Please sign in to comment.