Razor icon indicating copy to clipboard operation
Razor copied to clipboard

[FEATURE] Resize the Razor Window?

Open NewYears1978 opened this issue 3 years ago • 3 comments

I would assume there must be a reason this was never done or at least had been requested before? I always hate when apps force the window size and it makes navigating and using it very difficult. How come the window cannot be resized?

Thanks in advance.

Is your feature request related to a problem? Please describe. Not necessarily a problem just makes using the window difficult since it is a set size and I am on a 1440p monitor.

Describe the solution you'd like Simply allow the Razor window to be resized instead of a fixed size?

Describe alternatives you've considered Not really any way around this issue.

NewYears1978 avatar Oct 17 '21 04:10 NewYears1978

This is something that I can look at again, but ideally, we just move off of Winforms :)

markdwags avatar Nov 29 '21 16:11 markdwags

Do you have something in mind to move to? Switching to WPF would drop multi-platform support, while something like GtkSharp would keep multi-platform but mean some extra code to bundle with Razor, much like you've embedded FastColoredTextBox. There are other options beyond those two, as well.

dallenwilson avatar Nov 29 '21 17:11 dallenwilson

Under this open PR, a lot of great work was put in to isolate the Razor logic with the UI by @sorsarre

https://github.com/markdwags/Razor/pull/175

I built out a UI a few months back with AvaloiaUI that I'd use as a base for all the binding to the Razor backend. Here's some pics.

(Windows) 2021-09-10_16-54-34

(Linux) 2021-09-15_02-47-34

markdwags avatar Nov 29 '21 17:11 markdwags

This was added recently

https://github.com/markdwags/Razor/commit/c5ca92e93610c8c33ac98aa845e1545730b3533c

markdwags avatar Nov 04 '22 22:11 markdwags