You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Avalonia provides a foundation of controls that can be used to create rich applications. It also provides a powerful mechanism to create nice looking styles and themes.
After reviewing multiple available themes (Material, SukiUI and others) I've noticed there's a gap, or disconnection between the themes and the controls provided by avalonia.
To some degree, the themes need some contextual knowledge of the styled controls, and currently some of the themes resolve to create custom controls to fill this missing context, which IMHO, goes against the concept of a theme.
This is the same problem the web suffered with the div element which is the equivalent of the ContentControl, and was resolved in Html5 with the introduction of Semantic Elements:
Examples of non-semantic elements: div and span - Tells nothing about its content.
Examples of semantic elements: form, table, and article - Clearly defines its content.
Describe the solution you'd like
I would like to propose creating a library called avalonia.Themes.SemanticControls
The controls would look like this:
// commonly used controlsclassGroupBox:HeaderedContentControl{}classCard:ContentControl{}// semantic web elementsclassSection:ContentControl{}classArticle:ContentControl{}classSummary:ContentControl{}
...
The list of semantic controls to include would be:
Containers which are typically found in apps but not in web, comes to mind: ToolBar, StatusBar
This would allow theme developers to create styles for these controls instead of creating styles for the lower level controls, which lack context about their usage within the layout.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Avalonia provides a foundation of controls that can be used to create rich applications. It also provides a powerful mechanism to create nice looking styles and themes.
After reviewing multiple available themes (Material, SukiUI and others) I've noticed there's a gap, or disconnection between the themes and the controls provided by avalonia.
To some degree, the themes need some contextual knowledge of the styled controls, and currently some of the themes resolve to create custom controls to fill this missing context, which IMHO, goes against the concept of a theme.
This is the same problem the web suffered with the div element which is the equivalent of the ContentControl, and was resolved in Html5 with the introduction of Semantic Elements:
Describe the solution you'd like
I would like to propose creating a library called avalonia.Themes.SemanticControls
The controls would look like this:
The list of semantic controls to include would be:
This would allow theme developers to create styles for these controls instead of creating styles for the lower level controls, which lack context about their usage within the layout.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: