f3d-app / f3d

Fast and minimalist 3D viewer.
https://f3d.app
BSD 3-Clause "New" or "Revised" License
2.74k stars 199 forks source link

Keep window on last closed position #856

Open Da3n0n opened 1 year ago

Da3n0n commented 1 year ago

Context When F3D opens, the window is position is not set at all and left to the window manager to position it, unless --position is set. It would be nice to be able automatically save the position the window was the last time and restore it

Comments This require to actually save the info somewhere on disk. We do already save a cache so this could be added to a generic cache where we put info in a .json format, but more discussions needed.

Notes

Original issue below

these are obviously not necessity, but these two small things would make the experience so much better.

1.Dark Title bar Implementation.

https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-windows-themes#enable-a-dark-mode-title-bar-for-win32-applications

  1. Open F3D Window in Last closed position or Open in Center of Current Monitor.
Meakk commented 1 year ago

1 should be fairly easy to implement, but it has to be done in VTK.
2 would be interesting and that's not the first time someone ask for it.

mwestphal commented 1 year ago

Shouldn't 2 be handled by the window manager already ? It seems implementable but i'd rather not if window manager provide the feature.

Da3n0n commented 1 year ago

these two things would be great imo. if your open to more sweet feature suggestions happy to share more : )

Meakk commented 1 year ago

Definitely! We're always open to new ideas :)
Please share @Da3n0n

Da3n0n commented 1 year ago

well i don't want to just keep pumping you with features and make it overwhelming, but here's a few more off the top of the head Add View options to the viewport for orthographic views.

drag and drop hdri into viewport to load it in the viewport would be really amazing or load HDRI option in the viewport would be nice either.

i will jsut leave these for now but i cna keep going

I love this project and even if yous dony implement these features will be still using f3d and supporting it .if I had more experience I would go ahead and try implement these features myself.

mwestphal commented 1 year ago

well i don't want to just keep pumping you with features and make it overwhelming

We are glad to see peoplen using F3D and having ideas. It is very motivating for the people developing it :)

Add View options to the viewport for orthographic views.

Yes, that should not be too hard !

drag and drop hdri into viewport to load it in the viewport

Reported here already, we should adress it soon! #34

load HDRI option in the viewport would be nice either.

It already exists ? --hdri

I love this project and even if yous dony implement these features will be still using f3d and supporting it

Thanks for the feedback. Do not hesitate to report other ideas here, I will create dedicated issue to keep track of them.

mwestphal commented 1 year ago

drag and drop hdri into viewport to load it in the viewport

Done in 2.1.0 release

mwestphal commented 1 year ago

Rework this issue into the keep window on last closed position

Da3n0n commented 1 year ago

Amazing Stuff Guys Really well down such a Fast Implementation of the HDRI Drag and Drop feature Honestly Amazing i Love this Project So much.