|
17 | 17 |
|
18 | 18 | <div> |
19 | 19 | <FluentStack Orientation="Orientation.Vertical"> |
20 | | - <FluentSelect Label="Theme" Width="150px" |
21 | | - Items="@(Enum.GetValues<DesignThemeModes>())" |
22 | | - @bind-SelectedOption="@Mode" /> |
23 | | - <FluentSelect Label="Color" |
24 | | - Items="@(Enum.GetValues<OfficeColor>().Select(i => (OfficeColor?)i))" |
25 | | - Height="200px" Width="250px" @bind-SelectedOption="@OfficeColor"> |
26 | | - <OptionTemplate> |
27 | | - <FluentStack> |
28 | | - <FluentIcon Value="@(new Icons.Filled.Size20.RectangleLandscape())" Color="Color.Custom" |
29 | | - CustomColor="@(@context.ToAttributeValue() != "default" ? context.ToAttributeValue() : "#036ac4" )" /> |
30 | | - <FluentLabel>@context</FluentLabel> |
31 | | - </FluentStack> |
32 | | - </OptionTemplate> |
33 | | - </FluentSelect> |
| 20 | + <FluentStack Orientation="Orientation.Horizontal" Width="100%"> |
| 21 | + <FluentSelect Label="Theme" Width="150px" |
| 22 | + Items="@(Enum.GetValues<DesignThemeModes>())" |
| 23 | + @bind-SelectedOption="@Mode" /> |
| 24 | + </FluentStack> |
| 25 | + |
| 26 | + <FluentStack Orientation="Orientation.Horizontal" Width="100%"> |
| 27 | + <FluentSelect Label="Color" |
| 28 | + Items="@(Enum.GetValues<OfficeColor>().Select(i => (OfficeColor?)i))" |
| 29 | + Height="200px" Width="250px" @bind-SelectedOption="@OfficeColor"> |
| 30 | + <OptionTemplate> |
| 31 | + <FluentStack> |
| 32 | + <FluentIcon Value="@(new Icons.Filled.Size20.RectangleLandscape())" Color="Color.Custom" |
| 33 | + CustomColor="@(@context.ToAttributeValue() != "default" ? context.ToAttributeValue() : "#036ac4" )" /> |
| 34 | + <FluentLabel>@context</FluentLabel> |
| 35 | + </FluentStack> |
| 36 | + </OptionTemplate> |
| 37 | + </FluentSelect> |
| 38 | + </FluentStack> |
34 | 39 | </FluentStack> |
35 | 40 | </div> |
36 | 41 |
|
| 42 | +<br/> |
| 43 | + |
37 | 44 | @if( settings != null) |
38 | 45 | { |
39 | 46 | <div> |
40 | 47 | <EditForm Model="@settings" OnValidSubmit="SaveSettings"> |
41 | 48 | <DataAnnotationsValidator /> |
42 | 49 | <ValidationSummary /> |
43 | 50 | <FluentStack Orientation="Orientation.Vertical" Width="100%"> |
44 | | - <FluentTextField Label="Last Bookmark Date" @bind-Value="settings!.LastBookmarkDate" /> |
45 | | - |
46 | | - <FluentStack Orientation="Orientation.Horizontal"> |
| 51 | + |
| 52 | + <FluentStack Orientation="Orientation.Horizontal" Width="100%" VerticalAlignment="VerticalAlignment.Center"> |
| 53 | + <FluentTextField Label="Last Bookmark Date" @bind-Value="settings!.LastBookmarkDate" /> |
| 54 | + </FluentStack> |
| 55 | + |
| 56 | + <FluentStack Orientation="Orientation.Horizontal" Width="100%" VerticalAlignment="VerticalAlignment.Center"> |
47 | 57 | <FluentTextField Label="Reading Notes Counter" @bind-Value="settings!.ReadingNotesCounter" /> |
48 | 58 | <FluentButton OnClick="IncrementCounter" Appearance="Appearance.Accent" IconEnd="@(new Icons.Regular.Size16.Add())"/> |
49 | 59 | </FluentStack> |
50 | | - |
| 60 | + |
| 61 | + <FluentStack Orientation="Orientation.Horizontal" Width="100%"> |
| 62 | + <FluentTextField Label="Favorite Domains" @bind-Value="settings!.FavoriteDomains" Style="width:80%" /> |
| 63 | + </FluentStack> |
| 64 | + |
| 65 | + <FluentStack Orientation="Orientation.Horizontal" Width="100%"> |
| 66 | + <FluentTextField Label="Blocked Domains" @bind-Value="settings!.BlockedDomains" Style="width:80%" /> |
| 67 | + </FluentStack> |
| 68 | + |
| 69 | + <FluentStack Orientation="Orientation.Horizontal" Width="100%"> |
| 70 | + <FluentTextArea Label="Summary Prompt - must contain {content}." @bind-Value="settings!.SummaryPrompt" Cols="80" Rows="3"/> |
| 71 | + <FluentValidationMessage For="@(() => settings!.SummaryPrompt)" /> |
| 72 | + </FluentStack> |
| 73 | + |
| 74 | + <FluentStack Orientation="Orientation.Horizontal" Width="100%"> |
| 75 | + <FluentTextArea Label="Search Prompt - must contain {topic}. Will be replace at search time" @bind-Value="settings!.SearchPrompt" Cols="80" Rows="3" /> |
| 76 | + <FluentValidationMessage For="@(() => settings!.SearchPrompt)" /> |
| 77 | + </FluentStack> |
| 78 | + |
51 | 79 | <FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent">Save</FluentButton> |
52 | 80 |
|
53 | 81 | </FluentStack> |
|
0 commit comments