Meowtrix / MoeIDE

Provide background images for the IDE.
MIT License
99 stars 21 forks source link

Are there anyway to apply the same effect on a child window? #7

Open Code-ScottLe opened 7 years ago

Code-ScottLe commented 7 years ago

Right now the background are only being displayed on the main window, but not the child window (detached tabs). Are there anyway to enable this?

Other than that and the punctuation being black problem, it is looking pretty good.

Thanks!

huoyaoyuan commented 7 years ago

Technically, detached window is a new Win32 window. Display a separated background on it should be possible(I'm not sure how to determine if it's detached), but make the main background go through will cost a lot(seems not impossible), and some additional work required. Which type do you need, a new one or go through?

Code-ScottLe commented 7 years ago

I think either of them would be fine, I have no problem setting a new background for a new window, but i don't think this would scale well (as user can detach many tabs and we can't prepare them all).

Why the main background go through would be impossible though? Can you remember the background path and just load the image again on the new window?

huoyaoyuan commented 7 years ago

Well, I said not impossible. In fact, XAML editor has a new Win32 window inside it, and I used some tricks to make the background shows. But it won't move and always drop in place of the main background. Not sure if the tricks will work well on detached windows.