Skip to content

Commit

Permalink
PlatformAgnostic build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rds1983 committed Dec 29, 2023
1 parent 9ab0ab5 commit 7f5b75b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions samples/Myra.Samples.Silk.NET.TrippyGL/AllWidgets.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Myra.Graphics2D.UI;
using Myra.Graphics2D.UI.ColorPicker;
using Myra.Graphics2D.UI.File;
using Myra.Graphics2D.UI.Styles;

namespace Myra.Samples.AllWidgets
{
Expand All @@ -10,27 +11,27 @@ public AllWidgets()
{
BuildUI();

_menuItemOpenFile.Image = DefaultAssets.UITextureRegionAtlas["icon-folder"];
_menuItemSaveFile.Image = DefaultAssets.UITextureRegionAtlas["icon-folder-new"];
_menuItemOpenFile.Image = Stylesheet.Current.Atlas["icon-folder"];
_menuItemSaveFile.Image = Stylesheet.Current.Atlas["icon-folder-new"];

_menuItemOpenFile.Selected += (s, a) => OpenFile();
_menuItemSaveFile.Selected += (s, a) => SaveFile();
_menuItemChooseColor.Selected += (s, a) => ChooseColor();
_menuItemChooseFolder.Selected += (s, a) => ChooseFolder();
_menuItemQuit.Selected += (s, a) => Quit();

_buttonOpenFile.Image = DefaultAssets.UITextureRegionAtlas["icon-star"];
_buttonOpenFile.Image = Stylesheet.Current.Atlas["icon-star"];
_buttonOpenFile.Click += (sender, args) => OpenFile();

_buttonSaveFile.Image = DefaultAssets.UITextureRegionAtlas["icon-star"];
_buttonSaveFile.Image = Stylesheet.Current.Atlas["icon-star"];
_buttonSaveFile.Click += (sender, args) => SaveFile();

_buttonChooseFolder.Image = DefaultAssets.UITextureRegionAtlas["icon-star"];
_buttonChooseFolder.Image = Stylesheet.Current.Atlas["icon-star"];
_buttonChooseFolder.Click += (sender, args) => ChooseFolder();

_buttonChooseColor.Click += (sender, args) => ChooseColor();

_imageButton.Image = DefaultAssets.UITextureRegionAtlas["icon-star-outline"];
_imageButton.Image = Stylesheet.Current.Atlas["icon-star-outline"];
_imageButton.Click += (sender, args) =>
{
var debugWindow = new DebugOptionsWindow();
Expand Down
13 changes: 7 additions & 6 deletions samples/Myra.Samples.Silk.NET/AllWidgets.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Myra.Graphics2D.UI;
using Myra.Graphics2D.UI.ColorPicker;
using Myra.Graphics2D.UI.File;
using Myra.Graphics2D.UI.Styles;

namespace Myra.Samples.AllWidgets
{
Expand All @@ -10,27 +11,27 @@ public AllWidgets()
{
BuildUI();

_menuItemOpenFile.Image = DefaultAssets.UITextureRegionAtlas["icon-folder"];
_menuItemSaveFile.Image = DefaultAssets.UITextureRegionAtlas["icon-folder-new"];
_menuItemOpenFile.Image = Stylesheet.Current.Atlas["icon-folder"];
_menuItemSaveFile.Image = Stylesheet.Current.Atlas["icon-folder-new"];

_menuItemOpenFile.Selected += (s, a) => OpenFile();
_menuItemSaveFile.Selected += (s, a) => SaveFile();
_menuItemChooseColor.Selected += (s, a) => ChooseColor();
_menuItemChooseFolder.Selected += (s, a) => ChooseFolder();
_menuItemQuit.Selected += (s, a) => Quit();

_buttonOpenFile.Image = DefaultAssets.UITextureRegionAtlas["icon-star"];
_buttonOpenFile.Image = Stylesheet.Current.Atlas["icon-star"];
_buttonOpenFile.Click += (sender, args) => OpenFile();

_buttonSaveFile.Image = DefaultAssets.UITextureRegionAtlas["icon-star"];
_buttonSaveFile.Image = Stylesheet.Current.Atlas["icon-star"];
_buttonSaveFile.Click += (sender, args) => SaveFile();

_buttonChooseFolder.Image = DefaultAssets.UITextureRegionAtlas["icon-star"];
_buttonChooseFolder.Image = Stylesheet.Current.Atlas["icon-star"];
_buttonChooseFolder.Click += (sender, args) => ChooseFolder();

_buttonChooseColor.Click += (sender, args) => ChooseColor();

_imageButton.Image = DefaultAssets.UITextureRegionAtlas["icon-star-outline"];
_imageButton.Image = Stylesheet.Current.Atlas["icon-star-outline"];
_imageButton.Click += (sender, args) =>
{
var debugWindow = new DebugOptionsWindow();
Expand Down

0 comments on commit 7f5b75b

Please sign in to comment.