-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GTK): Support for some GTK TextBox visual properties, clear button
- Some visual properties of TextBox now properly flow to native - Clear button works
- Loading branch information
1 parent
19e6680
commit 8f7ab5c
Showing
12 changed files
with
111 additions
and
51 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...Gtk/GTK/GtkDisplayInformationExtension.cs → ...kia.Gtk/GtkDisplayInformationExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
src/Uno.UI.Runtime.Skia.Gtk/UI/Text/FontWeightExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Windows.UI.Text; | ||
using Pango; | ||
|
||
namespace Uno.UI.Runtime.Skia.GTK.UI.Text | ||
{ | ||
public static class FontWeightExtensions | ||
{ | ||
/// <summary> | ||
/// Based on <see cref="https://github.com/GNOME/pango/blob/master/pango/pango-font.h" /> | ||
/// and <see cref="https://docs.microsoft.com/en-us/uwp/api/windows.ui.text.fontweights?view=winrt-19041" />. | ||
/// </summary> | ||
/// <param name="weight">Font weight.</param> | ||
/// <returns>Pango weight.</returns> | ||
public static Weight ToPangoWeight(this FontWeight weight) => (Weight)weight.Weight; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.