Re: GTK3 Glade and rendering in Windows/Linux]
Finally could style with css and Glade in Windows adnd adjust the margins (actually using padding as the margin seems not be able to change it while in Linux it did). "GtkWindow" (instead of "window") is what seems needed to be used in Windows. Apparently Windows and Linux uses different css class tags for styling. Some other issues I am having: 1. Not able to set the background color of a GtkButton GtkButton { color: blue; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; font: "Segoe UI"; font-size: 8px; } 2. Not able to change the width and height of a GtkButton (only the font color) - the default button styles a bit too large. 3. A RadioButton both styles using GtkButton and GtkRadioButton 4. Windows uses as default the "Segoe UI" font and when using this in CSS the compiler reports: (win-gtk-cpp.exe:12088): Pango-WARNING **: couldn't load font ""Segoe UI" Not-Rotated 8", falling back to "Sans Not-Rotated 8", expect ugly output. (win-gtk-cpp.exe:12088): Pango-WARNING **: couldn't load font ""Segoe UI" 8", falling back to "Sans 8", expect ugly output. 5. Not able to change the radio button more into the standard Windows style (the circle). Is this possible somehow ? P.S the original attached .glade file does not load into the windows Glade interface Designer. Are the Linux and Windows version not compatible ? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK3 Glade and rendering in Windows/Linux]
That works, but this only does work on Linux. On Windows it reads the css file but the css is not applied. http://wikistack.com/use-css-gtk/ With as css: window { background-color:rgba(233,23,34,1); } Thanks On Sun, 2017-02-19 at 08:25 -0800, Phil Wolff wrote: > In the example you cite, the css file should read > > window { > background-color:rgba(233,23,34,1); > } > > > On 02/19/2017 04:33 AM, Happy wrote: > > I dont mind the windows theme to look different than the Ubuntu > > one, if > > it looks close or equal to native Windows, that would be great. > > The concern is, under windows the spacing is pretty large. > > So, I started to look at css, compiled and run this (non glade) > > example > > : http://wikistack.com/use-css-gtk/ > > As with my own (glade0 application, the css seems not being > > applied, > > My window is still grey instead of red. > > > > > > On Tue, 2017-01-31 at 14:50 +0100, Tilo Villwock wrote: > > > Well for one: The appearance on Ubuntu deviates from the default > > > GTK > > > theme, so I'm not really sure if the comparison makes sense. > > > > > > Also, did you actually verify that this is a problem, that > > > pertains > > > to > > > Glade only? > > > > > > Either way, if it bothers you too much, you have to start > > > tweaking > > > the > > > css style context. > > > > > > --Tilo > > > > > > Am Dienstag, den 31.01.2017, 20:54 +0800 schrieb Happy: > > > > Thanks for the note. Hope the following links work. As you can > > > > see > > > > the > > > > windows are much different in size as well as the spacing. > > > > > > > > Ubuntu: > > > > https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/vi > > > > ew?u > > > > sp > > > > =s > > > > haring > > > > > > > > Windows: > > > > https://drive.google.com/file/d/0BxjwKUaYdW_zeFhZdFYtelViUGM/vi > > > > ew?u > > > > sp > > > > =s > > > > haring > > > > > > > > Glade.glade file: > > > > https://drive.google.com/file/d/0BxjwKUaYdW_zYWY4UnZweDhRbGc/vi > > > > ew?u > > > > sp > > > > =s > > > > haring > > > > > > > > Thanks > > > > > > > > > > > > On Tue, 2017-01-31 at 20:09 +1100, Daniel Kasak wrote: > > > > > Neither of your messages had any attachments. Probably > > > > > they're > > > > > stripped out by the mailing list server. If you're trying to > > > > > point > > > > > people to files, screenshots, etc, try chucking them on a > > > > > blog > > > > > or > > > > > pastebin or something. > > > > > > > > > > Dan > > > > > > > > > > On Sun, Jan 29, 2017 at 12:44 PM, Happy > > > > >> > > > > wrote: > > > > > > Attached is a glade file. These render as seen in the > > > > > > attachments > > > > > > in > > > > > > Windows and Ubuntu(16.10). In Windows(10) the window is far > > > > > > larger > > > > > > as > > > > > > well as is for the spacing. It there a away to get the > > > > > > spacing > > > > > > and > > > > > > size > > > > > > down alike the rendering in Windows ? I guess this is not > > > > > > so > > > > > > much > > > > > > related to glade but more towards GTK, but if this > > > > > > assumption > > > > > > is > > > > > > wrong, > > > > > > then apologies for posting. > > > > > > > > > > > > ___ > > > > > > gtk-app-devel-list mailing list > > > > > > gtk-app-devel-list@gnome.org > > > > > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > > > > > > ___ > > > > gtk-app-devel-list mailing list > > > > gtk-app-devel-list@gnome.org > > > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > > ___ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > -- > Saying what we think gives us a wider conversational range than > saying > what we know. > — Cullen Hightower > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK3 Glade and rendering in Windows/Linux]
In the example you cite, the css file should read window { background-color:rgba(233,23,34,1); } On 02/19/2017 04:33 AM, Happy wrote: I dont mind the windows theme to look different than the Ubuntu one, if it looks close or equal to native Windows, that would be great. The concern is, under windows the spacing is pretty large. So, I started to look at css, compiled and run this (non glade) example : http://wikistack.com/use-css-gtk/ As with my own (glade0 application, the css seems not being applied, My window is still grey instead of red. On Tue, 2017-01-31 at 14:50 +0100, Tilo Villwock wrote: Well for one: The appearance on Ubuntu deviates from the default GTK theme, so I'm not really sure if the comparison makes sense. Also, did you actually verify that this is a problem, that pertains to Glade only? Either way, if it bothers you too much, you have to start tweaking the css style context. --Tilo Am Dienstag, den 31.01.2017, 20:54 +0800 schrieb Happy: Thanks for the note. Hope the following links work. As you can see the windows are much different in size as well as the spacing. Ubuntu: https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?u sp =s haring Windows: https://drive.google.com/file/d/0BxjwKUaYdW_zeFhZdFYtelViUGM/view?u sp =s haring Glade.glade file: https://drive.google.com/file/d/0BxjwKUaYdW_zYWY4UnZweDhRbGc/view?u sp =s haring Thanks On Tue, 2017-01-31 at 20:09 +1100, Daniel Kasak wrote: Neither of your messages had any attachments. Probably they're stripped out by the mailing list server. If you're trying to point people to files, screenshots, etc, try chucking them on a blog or pastebin or something. Dan On Sun, Jan 29, 2017 at 12:44 PM, Happywrote: Attached is a glade file. These render as seen in the attachments in Windows and Ubuntu(16.10). In Windows(10) the window is far larger as well as is for the spacing. It there a away to get the spacing and size down alike the rendering in Windows ? I guess this is not so much related to glade but more towards GTK, but if this assumption is wrong, then apologies for posting. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Saying what we think gives us a wider conversational range than saying what we know. — Cullen Hightower ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK3 Glade and rendering in Windows/Linux]
I dont mind the windows theme to look different than the Ubuntu one, if it looks close or equal to native Windows, that would be great. The concern is, under windows the spacing is pretty large. So, I started to look at css, compiled and run this (non glade) example : http://wikistack.com/use-css-gtk/ As with my own (glade0 application, the css seems not being applied, My window is still grey instead of red. On Tue, 2017-01-31 at 14:50 +0100, Tilo Villwock wrote: > Well for one: The appearance on Ubuntu deviates from the default GTK > theme, so I'm not really sure if the comparison makes sense. > > Also, did you actually verify that this is a problem, that pertains > to > Glade only? > > Either way, if it bothers you too much, you have to start tweaking > the > css style context. > > --Tilo > > Am Dienstag, den 31.01.2017, 20:54 +0800 schrieb Happy: > > Thanks for the note. Hope the following links work. As you can see > > the > > windows are much different in size as well as the spacing. > > > > Ubuntu: > > https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?u > > sp > > =s > > haring > > > > Windows: > > https://drive.google.com/file/d/0BxjwKUaYdW_zeFhZdFYtelViUGM/view?u > > sp > > =s > > haring > > > > Glade.glade file: > > https://drive.google.com/file/d/0BxjwKUaYdW_zYWY4UnZweDhRbGc/view?u > > sp > > =s > > haring > > > > Thanks > > > > > > On Tue, 2017-01-31 at 20:09 +1100, Daniel Kasak wrote: > > > Neither of your messages had any attachments. Probably they're > > > stripped out by the mailing list server. If you're trying to > > > point > > > people to files, screenshots, etc, try chucking them on a blog > > > or > > > pastebin or something. > > > > > > Dan > > > > > > On Sun, Jan 29, 2017 at 12:44 PM, Happy > > >> > > wrote: > > > > > > > > Attached is a glade file. These render as seen in the > > > > attachments > > > > in > > > > Windows and Ubuntu(16.10). In Windows(10) the window is far > > > > larger > > > > as > > > > well as is for the spacing. It there a away to get the spacing > > > > and > > > > size > > > > down alike the rendering in Windows ? I guess this is not so > > > > much > > > > related to glade but more towards GTK, but if this assumption > > > > is > > > > wrong, > > > > then apologies for posting. > > > > > > > > ___ > > > > gtk-app-devel-list mailing list > > > > gtk-app-devel-list@gnome.org > > > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > > ___ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK3 Glade and rendering in Windows/Linux]
I'm not sure of the licensing implications ( maybe there are none ), but the current Ubuntu theme is implemented exclusively in css. If you have a Ubuntu box, you can locate them in /usr/share/themes ( eg /usr/share/themes/Ambiance/gtk-3.20 is one particular theme ). If you copy these into the right directory ( depends on your gtk+ environment ), you can use them under Windows. Note that you'll need a theme that's written for your gtk+ version - the theming spec is now stable for current gtk-3.x. Dan On Wed, Feb 1, 2017 at 3:16 AM, Michael Torriewrote: > On 01/31/2017 05:54 AM, Happy wrote: >> >> Thanks for the note. Hope the following links work. As you can see the >> windows are much different in size as well as the spacing. >> >> Ubuntu: >> https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?usp=s >> haring >> >> Windows: >> https://drive.google.com/file/d/0BxjwKUaYdW_zeFhZdFYtelViUGM/view?usp=s >> haring >> >> Glade.glade file: >> https://drive.google.com/file/d/0BxjwKUaYdW_zYWY4UnZweDhRbGc/view?usp=s >> haring >> >> Thanks > > The differences are due to different themes used. If you used the same > theme between Windows and Linux, the output should look near identical. > But if you want it to look somewhat native on Windows, stick with the > default Windows-ish theme there. The Windows UI look and feel has > gotten rather big and spaced out in recent years, so maybe the theme is > just reflecting this. Does your GTK+ GUI look very different than > native Win32 apps? > > There's no reason I can think of to expect or want things to look pixel > per pixel identical between different operating systems and desktop > environments, though like I said you can do that by manually picking the > same theme as you use on the other platform. GTK's layouts are flexible > and can adapt and adjust to many different sizes and spacings. > > Just a note that your Windows example appears to be scaled by Windows > because of the UI DPI setting; you can turn that off by right-clicking > on the executable and going to properties, compatibility and disabling > the scaling option. > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK3 Glade and rendering in Windows/Linux]
On 01/31/2017 05:54 AM, Happy wrote: > > Thanks for the note. Hope the following links work. As you can see the > windows are much different in size as well as the spacing. > > Ubuntu: > https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?usp=s > haring > > Windows: > https://drive.google.com/file/d/0BxjwKUaYdW_zeFhZdFYtelViUGM/view?usp=s > haring > > Glade.glade file: > https://drive.google.com/file/d/0BxjwKUaYdW_zYWY4UnZweDhRbGc/view?usp=s > haring > > Thanks The differences are due to different themes used. If you used the same theme between Windows and Linux, the output should look near identical. But if you want it to look somewhat native on Windows, stick with the default Windows-ish theme there. The Windows UI look and feel has gotten rather big and spaced out in recent years, so maybe the theme is just reflecting this. Does your GTK+ GUI look very different than native Win32 apps? There's no reason I can think of to expect or want things to look pixel per pixel identical between different operating systems and desktop environments, though like I said you can do that by manually picking the same theme as you use on the other platform. GTK's layouts are flexible and can adapt and adjust to many different sizes and spacings. Just a note that your Windows example appears to be scaled by Windows because of the UI DPI setting; you can turn that off by right-clicking on the executable and going to properties, compatibility and disabling the scaling option. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK3 Glade and rendering in Windows/Linux]
Well for one: The appearance on Ubuntu deviates from the default GTK theme, so I'm not really sure if the comparison makes sense. Also, did you actually verify that this is a problem, that pertains to Glade only? Either way, if it bothers you too much, you have to start tweaking the css style context. --Tilo Am Dienstag, den 31.01.2017, 20:54 +0800 schrieb Happy: > Thanks for the note. Hope the following links work. As you can see > the > windows are much different in size as well as the spacing. > > Ubuntu: > https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?usp > =s > haring > > Windows: > https://drive.google.com/file/d/0BxjwKUaYdW_zeFhZdFYtelViUGM/view?usp > =s > haring > > Glade.glade file: > https://drive.google.com/file/d/0BxjwKUaYdW_zYWY4UnZweDhRbGc/view?usp > =s > haring > > Thanks > > > On Tue, 2017-01-31 at 20:09 +1100, Daniel Kasak wrote: > > Neither of your messages had any attachments. Probably they're > > stripped out by the mailing list server. If you're trying to point > > people to files, screenshots, etc, try chucking them on a blog or > > pastebin or something. > > > > Dan > > > > On Sun, Jan 29, 2017 at 12:44 PM, Happy> > wrote: > > > > > > Attached is a glade file. These render as seen in the attachments > > > in > > > Windows and Ubuntu(16.10). In Windows(10) the window is far > > > larger > > > as > > > well as is for the spacing. It there a away to get the spacing > > > and > > > size > > > down alike the rendering in Windows ? I guess this is not so much > > > related to glade but more towards GTK, but if this assumption is > > > wrong, > > > then apologies for posting. > > > > > > ___ > > > gtk-app-devel-list mailing list > > > gtk-app-devel-list@gnome.org > > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK3 Glade and rendering in Windows/Linux]
Thanks for the note. Hope the following links work. As you can see the windows are much different in size as well as the spacing. Ubuntu: https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?usp=s haring Windows: https://drive.google.com/file/d/0BxjwKUaYdW_zeFhZdFYtelViUGM/view?usp=s haring Glade.glade file: https://drive.google.com/file/d/0BxjwKUaYdW_zYWY4UnZweDhRbGc/view?usp=s haring Thanks On Tue, 2017-01-31 at 20:09 +1100, Daniel Kasak wrote: > Neither of your messages had any attachments. Probably they're > stripped out by the mailing list server. If you're trying to point > people to files, screenshots, etc, try chucking them on a blog or > pastebin or something. > > Dan > > On Sun, Jan 29, 2017 at 12:44 PM, Happy> wrote: > > > > Attached is a glade file. These render as seen in the attachments > > in > > Windows and Ubuntu(16.10). In Windows(10) the window is far larger > > as > > well as is for the spacing. It there a away to get the spacing and > > size > > down alike the rendering in Windows ? I guess this is not so much > > related to glade but more towards GTK, but if this assumption is > > wrong, > > then apologies for posting. > > > > ___ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK3 Glade and rendering in Windows/Linux]
Neither of your messages had any attachments. Probably they're stripped out by the mailing list server. If you're trying to point people to files, screenshots, etc, try chucking them on a blog or pastebin or something. Dan On Sun, Jan 29, 2017 at 12:44 PM, Happywrote: > > Attached is a glade file. These render as seen in the attachments in > Windows and Ubuntu(16.10). In Windows(10) the window is far larger as > well as is for the spacing. It there a away to get the spacing and size > down alike the rendering in Windows ? I guess this is not so much > related to glade but more towards GTK, but if this assumption is wrong, > then apologies for posting. > > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GTK3 Glade and rendering in Windows/Linux]
Attached is a glade file. These render as seen in the attachments in Windows and Ubuntu(16.10). In Windows(10) the window is far larger as well as is for the spacing. It there a away to get the spacing and size down alike the rendering in Windows ? I guess this is not so much related to glade but more towards GTK, but if this assumption is wrong, then apologies for posting. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GTK3 Glade and rendering in Windows/Linux
Attached is a glade file. These render as seen in the attachments in Windows and Ubuntu(16.10). In Windows(10) the window is far larger as well as is for the spacing. It there a away to get the spacing and size down alike the rendering in Windows ? I guess this is not so much related to glade but more towards GTK, but if this assumption is wrong, then apologies for posting. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list