mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
add css class for action button
This commit is contained in:
parent
63f7f1c769
commit
326a0d0887
@ -6,12 +6,14 @@ const DEFAULT_ICON_NAME: &str = "avatar-default-symbolic";
|
|||||||
const DEFAULT_TITLE: &str = "Identity";
|
const DEFAULT_TITLE: &str = "Identity";
|
||||||
const DEFAULT_DESCRIPTION: &str = "Client certificate required to continue!";
|
const DEFAULT_DESCRIPTION: &str = "Client certificate required to continue!";
|
||||||
const DEFAULT_BUTTON_LABEL: &str = "Select";
|
const DEFAULT_BUTTON_LABEL: &str = "Select";
|
||||||
|
const DEFAULT_BUTTON_CLASS: &str = "suggested-action";
|
||||||
|
|
||||||
/// Create new default preset for `Identity`
|
/// Create new default preset for `Identity`
|
||||||
/// [StatusPage](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.StatusPage.html)
|
/// [StatusPage](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.StatusPage.html)
|
||||||
pub fn new_gobject() -> StatusPage {
|
pub fn new_gobject() -> StatusPage {
|
||||||
// Init certificate selection
|
// Init certificate selection
|
||||||
let button = &Button::builder()
|
let button = &Button::builder()
|
||||||
|
.css_classes([DEFAULT_BUTTON_CLASS])
|
||||||
.label(DEFAULT_BUTTON_LABEL)
|
.label(DEFAULT_BUTTON_LABEL)
|
||||||
.halign(Align::Center)
|
.halign(Align::Center)
|
||||||
.build();
|
.build();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user