OpenXenManager / openxenmanager

Opensource XenServer Management Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HiDPI / Font support

smartattack opened this issue · 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

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/

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

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

commented

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?

@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

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 notifications@github.com 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
#106 (comment)

commented

@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.

:)

@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!

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 notifications@github.com
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
#106 (comment)

commented

@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!

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 notifications@github.com 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
#106 (comment)

commented

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?

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 notifications@github.com 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
#106 (comment)

commented

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?

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

On Fri, Apr 29, 2016 at 6:15 AM, James notifications@github.com 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
#106 (comment)

commented

Probably close this issue hey?

@jsarasin is it fixed?

commented

@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 i don't work at the company anymore where we used Xen.