Skip to content

Commit

Permalink
networkAgent.js: Make the WPS message smaller
Browse files Browse the repository at this point in the history
Smaller in size and in font size, similar to the caption
used in the run dialog.

WPS is only added as a hint, it wasn't even mentioned in the
Gtk agent.
  • Loading branch information
clefebvre committed Nov 4, 2024
1 parent 68c6821 commit cbf69f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions data/theme/cinnamon-sass/widgets/_dialogs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
}

.message-dialog-description { text-align: center; }

.message-dialog-caption {
@extend %caption;
text-align: center;
}
}

// run dialog
Expand Down
4 changes: 2 additions & 2 deletions js/ui/networkAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {

if (flags & NM.SecretAgentGetSecretsFlags.WPS_PBC_ACTIVE) {
let descriptionLabel = new St.Label({
text: _('Alternatively you can connect by pushing the “WPS” button on your router.'),
style_class: 'message-dialog-description',
text: _('You can also connect by pushing the “WPS” button on your router.'),
style_class: 'message-dialog-caption',
});
descriptionLabel.clutter_text.line_wrap = true;
descriptionLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
Expand Down

0 comments on commit cbf69f7

Please sign in to comment.