コード例 #1
0
 public override VNode Render()
 {
     return(Row(
                Styles.MainMenuItem,
                Div(Styles.Wicon & Styles.MR0P5, DOM.Icon(Icon)),
                Text(Name)
                ));
 }
コード例 #2
0
 public override VNode Render()
 {
     return(Row(
                IsSelected ? Styles.SubMenuItemSelected : Styles.SubMenuItem,
                Action,
                Div(Styles.Wicon & Styles.MR0P5, DOM.Icon(Icon)),
                Text(Name)
                ));
 }
コード例 #3
0
 private VNode RenderGameSettings()
 {
     //event for this i think
     return(Div(
                Styles.TabNameTagNoWidth & Styles.MinW25 & Styles.FitContent,
                Text("Chess Options:", Styles.Fontcopperplate & Styles.Underline & Styles.MB2P5rem),
                Row(
                    () => Account.Commands.ChangeAutomaticPromotion(AccountEntry.ID, AccountEntry.AutomaticPromotion),
                    Text("Automatic Promotion"),
                    DOM.Icon(AccountEntry.AutomaticPromotion ? "fas fa-toggle-on" : "fas fa-toggle-off", Styles.MX1 & Styles.TCToggle)
                    )
                ));
 }
コード例 #4
0
 private VNode RenderPersonalInfo()
 {
     return(Div(
                Div(
                    Styles.TabNameTagNoWidth & Styles.MinW25 & Styles.FitContent,
                    Text("Change Username", Styles.Fontcopperplate & Styles.Underline & Styles.MB2P5rem),
                    Row(
                        Text("Current Username:"******"New Username:"******"Apply", Styles.BtnSettings, () => Account.Commands.ChangeUsername(AccountEntry.ID, Username))
                        )
                    ),
                Div(
                    Styles.TabNameTagNoWidth & Styles.MinW25 & Styles.FitContent,
                    Text("Change Icon", Styles.Fontcopperplate & Styles.Underline & Styles.MB2P5rem),
                    Row(
                        DropdownComponent <string> .Render(AccountProjection.GetIcons(), i => Icon = i, "Change Icon", i => Div(DOM.Icon(i, Styles.TCblack))),
                        DOM.Icon(Icon != default ? Icon : "fas fa-question-circle", Styles.MX1),
                        Text("Apply", Styles.BtnSettings & Styles.MX1, () => Account.Commands.ChangeIcon(AccountEntry.ID, Icon))
                        )
                    )
                ));
 }