Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 24 10:12
    borjafdezgauna opened #1903
  • Feb 23 23:41
    cwensley closed #1902
  • Feb 23 23:41

    cwensley on develop

    Add PaddingF and Rectangle/F.In… Add Control.GetPreferredSize(Si… Merge pull request #1902 from c… (compare)

  • Feb 23 23:35
    cwensley milestoned #1902
  • Feb 23 23:35
    cwensley labeled #1902
  • Feb 23 23:33
    cwensley edited #1902
  • Feb 23 23:32
    cwensley opened #1902
  • Feb 23 23:02
    cwensley milestoned #1901
  • Feb 23 23:02
    cwensley opened #1901
  • Feb 23 10:01
    cwensley labeled #1884
  • Feb 23 10:01
    cwensley milestoned #1884
  • Feb 23 10:00
    cwensley milestoned #1900
  • Feb 23 09:59

    cwensley on develop

    Gtk: Fix enter/leave events ove… Merge pull request #1900 from c… (compare)

  • Feb 23 09:59
    cwensley closed #1900
  • Feb 23 09:59
    cwensley closed #1884
  • Feb 23 09:46
    cwensley opened #1900
  • Feb 21 22:49
    cwensley milestoned #1899
  • Feb 21 22:49
    cwensley commented #1899
  • Feb 21 22:48
    cwensley labeled #1899
  • Feb 21 18:28
    geoff-m opened #1899
Curtis Wensley
@cwensley
@Auburn One thing.. are you using the snap version of VSCode? It has.. problems.. like this one.
you need to use the .deb version so it has full access to your system.
Jordan Peck
@Auburn
I don't remember, is there a way to check
Ah yeah I am using the snap version
Curtis Wensley
@cwensley
that would be it, then
Jordan Peck
@Auburn
.deb version fixed it
Thanks
Curtis Wensley
@cwensley
no problemmo. (;
Jordan Peck
@Auburn
The dropdowns are much larger on Linux, messing up my formatting
Curtis Wensley
@cwensley
Yeah controls in general are quite large on Gtk these days. I think they did that to support touch.
philstopford
@philstopford
Indeed. It's that which forced me to move to a tablelayout managed UI. I had this nicely calibrated design that worked well under all platforms (GTK being then GTK2) and then GTK3 messed it all up with enormous controls. Even now, it's massively wasteful of screen space. I think they ought to be somewhat ashamed. Not every UI calls for touch, after all, and when you end up scrolling to access controls that fit in the UI on every other platform, it just looks terrible to the user (in my experience).
Even with a 4K panel, I end up having to have the tablelayout inside a scrollable to account for this particular 'quirk' of GTK. The horizontal and vertical scrolling is tedious and very saddening when I was deliberately aiming for a UI that didn't have controls out-of-sight and made all of them available without subdialogs, extra windows, etc.
The FastNoise projects are neat - wasn't aware of those before and will be taking a look. The imgui (I guess?) node editor in FastNoise2 makes me still want something like that for Eto :D
Jordan Peck
@Auburn
Thanks, the FastNoise2 node editor uses https://github.com/Nelarius/imnodes
philstopford
@philstopford
Yeah - I recognized the look of the imgui from the Veldrid examples.
philstopford
@philstopford
Do you expect to have other implementations (C#, for example) for the FastNoise2, or is that version more for pure speed? Curious about your plans, and whether an Eto UI is being considered (with a node component :D)
Jordan Peck
@Auburn
FastNoise2 uses SIMD for performance and SIMD support isn't fully there yet for C#, can chat more on the FastNoise discord if you want
Jordan Peck
@Auburn
Is it possible to make a Scrollable only scroll vertically?
Curtis Wensley
@cwensley
@Auburn yes, set Scrollable.Content.Width = 1. It will (by default) expand to the width of the scrollable so it won’t actually be 1 pixel wide.
Jordan Peck
@Auburn
image.png
The Scrollable now doesn't auto size to the area though :/
realonepiecefreak
@onepiecefreak3
@cwensley Found out that I could use the ListBox for what I need. It also looks nearly exactly as I need it. Is there a way to vertically align the text in a ListBox somehow?
Curtis Wensley
@cwensley
Depends on the platform, there's no api in Eto for that. You can with a GridView, however as it is much more flexible.
Geoff McQueen
@geoff-m
speaking of vertically aligning text, is there any other way to do that?
i noticed FormattedText has alignment but it seems only horizontal
(even if not, using Measure/MeasureString is a possibility)
Curtis Wensley
@cwensley
vertical aligning? Like Label.VerticalAlignment = VerticalAlignment.Center ?
for a ListBox, there's no API for that, as I mentioned.
With FormattedText, you can Measure and then align it wherever you want.
though that assumes you're using a Drawable to draw the text.
Geoff McQueen
@geoff-m
yeah i am using Drawable
Jordan Peck
@Auburn
Is it possible to create a framework-dependant cross-platform binary when using eto.forms?
realonepiecefreak
@onepiecefreak3
As far as I'm aware, you could theoretically execute every binary by Eto.Forms on any platform. However the technology used behind the specific Eto platform is the limiting factor. I would say, using something like GDK or OpenTK as your platform should make it executable cross-platform, given the respective dependincies are installed of course.
You cannot create an Eto.Forms application based on WPF or WinForms and execute it on Linux or Mac, as far as I'm aware, since the netcore framework does not support them either, and Eto "merely" relies on both existing technologies to wrap around.
Jordan Peck
@Auburn
And there is no way to conditionally load the correct platform.dll at runtime?
Curtis Wensley
@cwensley
@Auburn you could, theoretically do that, yes. This is how it worked when using .NET Framework or mono. It gets complicated on .NET Core/5+ as you can only compile Wpf or WinForms on windows. I might be able to "fix" that by removing the Microsoft.WindowsDesktop.App framework reference, but I don't know if that'll break other things.
Jordan Peck
@Auburn
Can you make the Microsoft.WindowsDesktop.App framework reference conditional?
Curtis Wensley
@cwensley
Not as far as I understand how nupkg's work..
It's either required or not..
Jordan Peck
@Auburn
I'm trying to publish for osx-x64 but it's giving me this error
Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.
linux-x64 and win-x64 are fine, and Google isn't giving any helpful answers
It works if I do a self contained binary, but I don't really want that
Curtis Wensley
@cwensley
Do you have TrimMode set to link?
Jordan Peck
@Auburn
Not sure, this is my command dotnet publish .\FastNoiseLite.csproj -c Release -r osx-x64 --no-self-contained
It's probably whatever the default is
Looks like the default is copyused
Curtis Wensley
@cwensley
Should be.. try adding /p:MacBundleDotNet=False to your command
Jordan Peck
@Auburn
That works thanks
Curtis Wensley
@cwensley
I shouldn't be enabling it if SelfContained is set to false.. hm.