From a9ffd24abf00264a0874ca3fc735c43d58d6ea28 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 30 Jan 2024 01:11:54 +0900 Subject: [PATCH 1/7] Sync orientation lock (#694) --- src/Cards/UserCard.vala | 3 +++ src/PantheonAccountsServicePlugin.vala | 1 + 2 files changed, 4 insertions(+) diff --git a/src/Cards/UserCard.vala b/src/Cards/UserCard.vala index eb05105cb..e1c886d57 100644 --- a/src/Cards/UserCard.vala +++ b/src/Cards/UserCard.vala @@ -475,6 +475,9 @@ public class Greeter.UserCard : Greeter.BaseCard { interface_settings.set_value ("document-font-name", settings_act.document_font_name); interface_settings.set_value ("font-name", settings_act.font_name); interface_settings.set_value ("monospace-font-name", settings_act.monospace_font_name); + + var touchscreen_settings = new GLib.Settings ("org.gnome.settings-daemon.peripherals.touchscreen"); + touchscreen_settings.set_boolean ("orientation-lock", settings_act.orientation_lock); } private void set_night_light_settings () { diff --git a/src/PantheonAccountsServicePlugin.vala b/src/PantheonAccountsServicePlugin.vala index c390edbbe..d2eda3365 100644 --- a/src/PantheonAccountsServicePlugin.vala +++ b/src/PantheonAccountsServicePlugin.vala @@ -57,6 +57,7 @@ interface Pantheon.SettingsDaemon.AccountsService : Object { public abstract string document_font_name { owned get; set; } public abstract string font_name { owned get; set; } public abstract string monospace_font_name { owned get; set; } + public abstract bool orientation_lock { get; set; } /* Night Light */ public struct Coordinates { From d5132dedc76b5fffcf0e33fc641d24a6f4fac2bb Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 30 Jan 2024 02:26:59 +0900 Subject: [PATCH 2/7] Don't allow scrolling while logging in (#695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Danielle Foré --- src/MainWindow.vala | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 199ceb3c7..53266c34d 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -428,6 +428,8 @@ public class Greeter.MainWindow : Gtk.ApplicationWindow { } current_card.wrong_credentials (); + + carousel.interactive = true; } private async void load_users () { @@ -541,6 +543,10 @@ public class Greeter.MainWindow : Gtk.ApplicationWindow { int next_delta = 0; weak GLib.Binding? binding = null; private void switch_to_card (Greeter.UserCard user_card) { + if (!carousel.interactive) { + return; + } + if (next_delta != index_delta) { return; } @@ -617,17 +623,28 @@ public class Greeter.MainWindow : Gtk.ApplicationWindow { critical (e.message); } } + + carousel.interactive = false; + carousel.scroll_to (current_card); } private void go_previous (GLib.SimpleAction action, GLib.Variant? parameter) { - unowned Greeter.UserCard? next_card = (Greeter.UserCard) user_cards.peek_nth (index_delta - 1); + if (!carousel.interactive) { + return; + } + + unowned Greeter.UserCard? next_card = user_cards.peek_nth (index_delta - 1); if (next_card != null) { carousel.scroll_to (next_card); } } private void go_next (GLib.SimpleAction action, GLib.Variant? parameter) { - unowned Greeter.UserCard? next_card = (Greeter.UserCard) user_cards.peek_nth (index_delta + 1); + if (!carousel.interactive) { + return; + } + + unowned Greeter.UserCard? next_card = user_cards.peek_nth (index_delta + 1); if (next_card != null) { carousel.scroll_to (next_card); } From 9f5bedef99b520cea730845b030c32225f89f42b Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 30 Jan 2024 02:30:18 +0900 Subject: [PATCH 3/7] Compositor: Add fade-in animation (#697) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Danielle Foré --- compositor/WindowManager.vala | 15 +++++++++++++++ src/Application.vala | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/compositor/WindowManager.vala b/compositor/WindowManager.vala index 65028ce0a..7cbb88fcc 100644 --- a/compositor/WindowManager.vala +++ b/compositor/WindowManager.vala @@ -76,6 +76,21 @@ namespace GreeterCompositor { public override void start () { show_stage (); + unowned var background_actor = system_background.background_actor; + background_actor.opacity = 0; + background_actor.save_easing_state (); + background_actor.set_easing_duration (1000); + background_actor.set_easing_mode (Clutter.AnimationMode.EASE); + background_actor.opacity = 255; + background_actor.restore_easing_state (); + + ui_group.opacity = 0; + ui_group.save_easing_state (); + ui_group.set_easing_duration (1000); + ui_group.set_easing_mode (Clutter.AnimationMode.EASE); + ui_group.opacity = 255; + ui_group.restore_easing_state (); + unowned Meta.Display display = get_display (); display.gl_video_memory_purged.connect (() => { refresh_background (); diff --git a/src/Application.vala b/src/Application.vala index 9695b4532..c107f55a0 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -32,8 +32,6 @@ public int main (string[] args) { var settings_daemon = new Greeter.SettingsDaemon (); settings_daemon.start (); - Gtk.init (ref args); - Greeter.SubprocessSupervisor compositor; Greeter.SubprocessSupervisor wingpanel; @@ -43,6 +41,8 @@ public int main (string[] args) { critical (e.message); } + Gtk.init (ref args); + var window = new Greeter.MainWindow (); window.show_all (); From c8faf26ff567fc3404372c1316f5b088c61d5ac5 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 1 Feb 2024 07:55:17 +0000 Subject: [PATCH 4/7] Added translation using Weblate (Indonesian (id_ID)) --- po/extra/id_ID.po | 73 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 po/extra/id_ID.po diff --git a/po/extra/id_ID.po b/po/extra/id_ID.po new file mode 100644 index 000000000..120f6b1c4 --- /dev/null +++ b/po/extra/id_ID.po @@ -0,0 +1,73 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the extra package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: extra\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-06-19 17:04+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: id_ID\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: data/greeter.metainfo.xml.in:9 +msgid "Login & Lock Screen" +msgstr "" + +#: data/greeter.metainfo.xml.in:10 +msgid "Unlock or log in to your device" +msgstr "" + +#: data/greeter.metainfo.xml.in:33 +msgid "elementary, Inc." +msgstr "" + +#: data/greeter.metainfo.xml.in:40 data/greeter.metainfo.xml.in:54 +#: data/greeter.metainfo.xml.in:70 data/greeter.metainfo.xml.in:83 +#: data/greeter.metainfo.xml.in:97 +msgid "Minor updates:" +msgstr "" + +#: data/greeter.metainfo.xml.in:42 +msgid "Prevent a potential issue with dialogs that use portals" +msgstr "" + +#: data/greeter.metainfo.xml.in:43 +msgid "Fix potential issues with incorrect keyboard layout being set" +msgstr "" + +#: data/greeter.metainfo.xml.in:44 data/greeter.metainfo.xml.in:56 +#: data/greeter.metainfo.xml.in:72 data/greeter.metainfo.xml.in:85 +#: data/greeter.metainfo.xml.in:99 +msgid "Updated translations" +msgstr "" + +#: data/greeter.metainfo.xml.in:66 +msgid "New Features:" +msgstr "" + +#: data/greeter.metainfo.xml.in:68 +msgid "Provide panel background color interface" +msgstr "" + +#: data/greeter.metainfo.xml.in:79 data/greeter.metainfo.xml.in:92 +msgid "Improvements:" +msgstr "" + +#: data/greeter.metainfo.xml.in:81 +msgid "Fix a random issue where Greeter does not load correctly on boot" +msgstr "" + +#: data/greeter.metainfo.xml.in:94 +msgid "Hide clock during initial setup" +msgstr "" + +#: data/greeter.metainfo.xml.in:95 +msgid "Use selected accent color for logged in checkmark" +msgstr "" From 549aa58174eb8bad34ab8b78bfd21c0fc0c53dca Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 1 Feb 2024 07:56:53 +0000 Subject: [PATCH 5/7] Added translation using Weblate (Indonesian (id_ID)) --- po/id_ID.po | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 po/id_ID.po diff --git a/po/id_ID.po b/po/id_ID.po new file mode 100644 index 000000000..9efddff91 --- /dev/null +++ b/po/id_ID.po @@ -0,0 +1,103 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the io.elementary.greeter package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: io.elementary.greeter\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-06-19 17:04+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: id_ID\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: compositor/WindowManager.vala:324 +#, c-format +msgid "Changes will automatically revert after %i second." +msgid_plural "Changes will automatically revert after %i seconds." +msgstr[0] "" +msgstr[1] "" + +#: compositor/WindowManager.vala:331 +msgid "Keep new display settings?" +msgstr "" + +#: compositor/WindowManager.vala:335 +msgid "Keep Settings" +msgstr "" + +#: compositor/WindowManager.vala:336 +msgid "Use Previous Settings" +msgstr "" + +#: src/MainWindow.vala:63 +msgid "Log in as Guest" +msgstr "" + +#: src/MainWindow.vala:65 +msgid "Manual Login…" +msgstr "" + +#: src/MainWindow.vala:409 +msgid "Unable to Log In" +msgstr "" + +#: src/MainWindow.vala:410 +msgid "Starting the session has failed." +msgstr "" + +#: src/MainWindow.vala:481 +msgid "Unable to Launch Initial Setup" +msgstr "" + +#: src/MainWindow.vala:486 +msgid "" +"Initial Setup creates your first user. Without it, you will not be able to " +"log in and may need to reinstall the OS." +msgstr "" + +#: src/Cards/ManualCard.vala:35 +msgid "Manual Login" +msgstr "" + +#: src/Cards/ManualCard.vala:44 +msgid "Username" +msgstr "" + +#: src/Cards/ManualCard.vala:47 +msgid "Try username" +msgstr "" + +#: src/Cards/UserCard.vala:112 src/Widgets/PasswordEntry.vala:27 +msgid "Log In" +msgstr "" + +#: src/Cards/UserCard.vala:124 +msgid "Account disabled" +msgstr "" + +#: src/Cards/UserCard.vala:229 +msgid "Session cannot be changed while user is logged in" +msgstr "" + +#: src/Widgets/CapsLockRevealer.vala:70 +msgid "Caps Lock & Num Lock are on" +msgstr "" + +#: src/Widgets/CapsLockRevealer.vala:72 +msgid "Caps Lock is on" +msgstr "" + +#: src/Widgets/CapsLockRevealer.vala:74 +msgid "Num Lock is on" +msgstr "" + +#: src/Widgets/PasswordEntry.vala:24 +msgid "Password" +msgstr "" From 255e4d66c2ef6962ac602ec7651588e5b4829fb7 Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 1 Feb 2024 18:45:00 +0000 Subject: [PATCH 6/7] Update translation files Updated by "Update LINGUAS file" hook in Weblate. Translation: Desktop/Greeter (Extra) Translate-URL: https://l10n.elementary.io/projects/desktop/greeter-extra/ --- po/extra/LINGUAS | 1 + 1 file changed, 1 insertion(+) diff --git a/po/extra/LINGUAS b/po/extra/LINGUAS index 598710928..c49664ab8 100644 --- a/po/extra/LINGUAS +++ b/po/extra/LINGUAS @@ -198,3 +198,4 @@ aa ab gn an +id_ID From f733193c5a211a6dea3489cf605785110740585e Mon Sep 17 00:00:00 2001 From: Weblate Date: Fri, 2 Feb 2024 07:45:00 +0000 Subject: [PATCH 7/7] Update translation files Updated by "Update LINGUAS file" hook in Weblate. Translation: Desktop/Greeter Translate-URL: https://l10n.elementary.io/projects/desktop/greeter/ --- po/LINGUAS | 1 + 1 file changed, 1 insertion(+) diff --git a/po/LINGUAS b/po/LINGUAS index 8c8413241..973b4716e 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -198,3 +198,4 @@ aa ab gn an +id_ID