openxenmanager icon indicating copy to clipboard operation
openxenmanager copied to clipboard

HiDPI / Font support

Open smartattack opened this issue 10 years ago • 19 comments

Hi,

I am using a few systems with HiDPI and the UI renders oddly. Is there a way to fix this with settings, or would it be possible to add settings to allow changing the font sizes or scaling?

hidpi_rendering

smartattack avatar Jan 06 '16 16:01 smartattack

I think this is something that should get fixed when we eventually transition to GTK3 (not a small task!)

https://www.reddit.com/r/linux/comments/1n74un/will_only_gtk3_apps_receive_support_for_hidpi/

TwoWheelDev avatar Jan 06 '16 16:01 TwoWheelDev

Okay, understood. Is there any way to influence the font rendering as-is with the current app?

smartattack avatar Jan 06 '16 18:01 smartattack

@smartattack I'm not sure on that one... I shall have to look into it

TwoWheelDev avatar Jan 06 '16 18:01 TwoWheelDev

I'm going to fix up the .glade files. Everything is a fixed sized and isn't designed to automatically expand. Shouldn't take too long. I'll do my best to make sure I don't break anything. Any tips for a beginner to git/open source contributing? Do I have to create a separate branch for working on this?

Also, glade-gtk2 that I'm using crashes every five seconds, I'm going to go look for the most recent source to this, any advise?

jsarasin avatar Apr 04 '16 03:04 jsarasin

@dirk103 Many thanks for offering your help with the project.

As a starting point, you might want to check out the following article https://help.github.com/articles/fork-a-repo/

Forking the repo allows you to work on it, make changes, without affecting this one until you're happy with your changes when you can send a pull request.

No idea on why Glade is crashing, but it's reasonably simple to build from source which you can find here http://lists.ximian.com/pipermail/glade-devel/2014-May/002063.html

We have to use the older 3.8 version, as you've probobably discovered the project hasn't moved to GTK-3 yet.

Hope that helps

TwoWheelDev avatar Apr 04 '16 15:04 TwoWheelDev

Yes, thank you for offering to look at this. If I knew where to look I would be happy to take a stab at it myself. Are you going to update the glade files to auto-scale or change things in some other way?

On Sun, Apr 3, 2016 at 11:35 PM, James [email protected] wrote:

I'm going to fix up the .glade files. Everything is a fixed sized and isn't designed to automatically expand. Shouldn't take too long. I'll do my best to make sure I don't break anything. Any tips for a beginner to git/open source contributing? Do I have to create a separate branch for working on this?

Also, glade-gtk2 that I'm using crashes every five seconds, I'm going to go look for the most recent source to this, any advise?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/OpenXenManager/openxenmanager/issues/106#issuecomment-205119094

smartattack avatar Apr 04 '16 19:04 smartattack

@dlintott Yeah man. Thanks for a link. I'll fork it today. I have built Glade 3.8.5 from source. It seems to be working fine now, when I first started using it it was crashing and glitching all the time. This is quite a nice program! How long have you been working on it?

@smartattack I'm going to restructure the widgets in the glade files. Most of the layout uses fixed values which is very inflexible and relies on you having the exact font the glade files were designed with. For now I'm just going to get everything in a usable state. I've discovered a couple things that will need to be reworked but thankfully it isn't too bad.

:)

jsarasin avatar Apr 05 '16 18:04 jsarasin

@dirk103 glad to hear that's working now. There are some oddities in the way the UI was originally structured which I started to rework as well as splitting the glade files up... Originally everything was in one file!

TwoWheelDev avatar Apr 05 '16 22:04 TwoWheelDev

I did manage to figure something out tonight:

If I create ~/.gtkrc-2.0 and populate it with this, it helps a lot. The fonts are smaller so they're tiny, but at least they fit within the spaces meant for them so they aren't clipped:

style "openxenmanager" { font_name = "7" } widget_class "*" style "openxenmanager" gtk-font-name = "7"

On Tue, Apr 5, 2016 at 6:59 PM, Daniel Lintott [email protected] wrote:

@dirk103 glad to hear that's working now. There are some oddities in the way the UI was originally structured which I started to rework as well as splitting the glade files up... Originally everything was in one file!

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/OpenXenManager/openxenmanager/issues/106#issuecomment-206025606

smartattack avatar Apr 06 '16 03:04 smartattack

@smartattack I hate hacks.

Download my fixed repo. I haven't went over this hugely. It's a real work in progress.

https://github.com/dirk103/openxenmanager

I have only touched a few dialogs yet, I think some of the main ones (that I use).

!! Please let me know if there are any specific windows you would like me to fix immediately !!

I'm in the process of learning XenServer right now so I'm doing that as well as fixing this client up!

jsarasin avatar Apr 06 '16 03:04 jsarasin

Wow, nice work. It looks much better. I can still see a few dialogs like adding a network interface that have some issues but the main windows look fine now. I really appreciate your effort, thanks!

On Tue, Apr 5, 2016 at 11:19 PM, James [email protected] wrote:

@smartattack https://github.com/smartattack I hate hacks.

Download my fixed repo. I haven't went over this hugely. It's a real work in progress.

https://github.com/dirk103/openxenmanager

I have only touched a few dialogs yet, I think some of the main ones (that I use).

!! Please let me know if there are any specific windows you would like me to fix immediately !!

I'm in the process of learning XenServer right now so I'm doing that as well as fixing this client up!

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/OpenXenManager/openxenmanager/issues/106#issuecomment-206097508

smartattack avatar Apr 07 '16 02:04 smartattack

Thanks man :)

Yeah, I'm working my way through the whole thing. I'd appreciate it if you could tell me the dialogs to prioritize. I'm just learning about Citrix Xen Server right now so I'm not completely sure what's all important.

I haven't dug into the code besides making sure I don't break things, but does this project use a base library to manipulate the Xen server in a standard protocol, or are you implementing that as well?

jsarasin avatar Apr 07 '16 07:04 jsarasin

I just had another look at your repo today, James. The gui looks much more polished and the font sizing is much better on my hidpi laptop. Really nice work, thanks!

On Thu, Apr 7, 2016 at 3:19 AM, James [email protected] wrote:

Thanks man :)

Yeah, I'm working my way through the whole thing. I'd appreciate it if you could tell me the dialogs to prioritize. I'm just learning about Citrix Xen Server right now so I'm not completely sure what's all important.

I haven't dug into the code besides making sure I don't break things, but does this project use a base library to manipulate the Xen server in a standard protocol, or are you implementing that as well?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/OpenXenManager/openxenmanager/issues/106#issuecomment-206732386

smartattack avatar Apr 28 '16 16:04 smartattack

Thank you :)

I need to fix a few things up to get it accepted to the main repo. I'm hoping to redo the graphing, but need to learn some more Python and GTK first.

Can I ask what system you're running it on?

jsarasin avatar Apr 29 '16 10:04 jsarasin

I am running linux Mint Cinnamon 17.3. My display resolution is 2560x1440, fwiw.

On Fri, Apr 29, 2016 at 6:15 AM, James [email protected] wrote:

Thank you :)

I need to fix a few things up to get it accepted to the main repo. I'm hoping to redo the graphing, but need to learn some more Python and GTK first.

Can I ask what system you're running it on?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/OpenXenManager/openxenmanager/issues/106#issuecomment-215677463

smartattack avatar Apr 29 '16 13:04 smartattack

Probably close this issue hey?

jsarasin avatar Mar 25 '18 07:03 jsarasin

@jsarasin is it fixed?

davidak avatar Mar 25 '18 13:03 davidak

@davidak I believe all of the dialogs have been fixed up. @smartattack seemed to be happy. Of course there may be things here and there that could be fixed up, but more specific issues would have to be raised. Do you know of a place where scaling is an issue?

jsarasin avatar Mar 27 '18 07:03 jsarasin

@jsarasin i don't work at the company anymore where we used Xen.

davidak avatar Mar 27 '18 12:03 davidak