We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background should be #dfdfdf as long mouse is over the Stacklayout, like it works with Windows and Mac.
On GTK# the background flickers
void InitializeComponent() { Title = "GM Kickout"; MinimumSize = new Size(200, 200); Size = new Size(600, 300); var root = new DynamicLayout(); root.BackgroundColor = Colors.White; var header = new DynamicLayout(); header.Height = 70; header.BackgroundColor = Color.FromRgb(0x008080); root.Add(header); var content = new DynamicLayout(); content.Padding = new Padding(0, 20, 0, 0); var layout1 = MainLayout.CreateMainContentItem("Content Editor", "Edit the Content files of the project.", null); content.Add(layout1); root.Add(content); Content = root; Focus(); } public static class MainLayout { public static DynamicLayout CreateMainContentItem(string title, string description, Action click) { DynamicLayout layout = new DynamicLayout(); StackLayout stackLayout = new StackLayout(); stackLayout.Orientation = Orientation.Vertical; stackLayout.Padding = new Padding(0, 10); stackLayout.HorizontalContentAlignment = HorizontalAlignment.Center; stackLayout.MouseEnter += ((e, o) => { stackLayout.BackgroundColor = Color.FromRgb(0xdfdfdf); }); stackLayout.MouseDown += ((e, o) => { stackLayout.BackgroundColor = Color.FromRgb(0x008080); if(click != null) click(); }); stackLayout.MouseLeave += ((e, o) => { stackLayout.BackgroundColor = SystemColors.ControlBackground; }); Label titleLbl = new Label(); titleLbl.TextColor = Color.FromRgb(0xf88379); titleLbl.Font = new Font(SystemFont.Label, 20f); titleLbl.Text = title; Label descriptionLbl = new Label(); descriptionLbl.Font = new Font(SystemFont.Label); descriptionLbl.Text = description; stackLayout.Items.Add(titleLbl); stackLayout.Items.Add(descriptionLbl); StackLayout dummy = new StackLayout(); layout.Add(stackLayout); layout.Add(dummy); return layout; } }
Also tested on macOS Mojave with Mac inside VirtualBox which results in the same behavior as on Windows.
The text was updated successfully, but these errors were encountered:
Gtk: Fix enter/leave events over child controls
d8d080e
Fixes picoe#1884
Successfully merging a pull request may close this issue.
Expected Behavior
Background should be #dfdfdf as long mouse is over the Stacklayout, like it works with Windows and Mac.
![2021-01-31 14-20-56_2](https://user-images.githubusercontent.com/21297966/106385373-48c2b780-63d0-11eb-8543-2662880754a1.gif)
Actual Behavior
On GTK# the background flickers
![li2021-01-31 14-20-56_3](https://user-images.githubusercontent.com/21297966/106385582-5167bd80-63d1-11eb-8d6c-912dd8658c6a.gif)
Steps to Reproduce the Problem
Code that Demonstrates the Problem
Specifications
Also tested on macOS Mojave with Mac inside VirtualBox which results in the same behavior as on Windows.
The text was updated successfully, but these errors were encountered: