Recent

Author Topic: use the beautiful linux themes on windows  (Read 11111 times)

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
use the beautiful linux themes on windows
« on: December 11, 2021, 06:57:51 am »
hello brothers a question, how can I use some themes that are in linux (fedora, ubuntu) to be able to use them in windows, for example the QEMU program uses the "adwaita" theme of fedora in windows.
I am ignorant on this subject, please if someone has a small example I would appreciate it, I find those linux themes beautiful and I would like to use them in windows, I leave you an example image, greetings brothers.  :)

munair

  • Hero Member
  • *****
  • Posts: 798
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: use the beautiful linux themes on windows
« Reply #1 on: December 11, 2021, 09:00:41 am »
Let Windows be Windows and Linux be Linux.
keep it simple

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: use the beautiful linux themes on windows
« Reply #2 on: December 11, 2021, 08:11:28 pm »
It is the GTK+ library.  Compile your application to use GTK+ instead of WinAPI.  Of course your application will need the GTK+ DLL files.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
Re: use the beautiful linux themes on windows
« Reply #3 on: December 14, 2021, 12:59:35 am »
hello friends, I have tried the program "Change GTK2 Appearance" and apparently it changes the themes in windows similar to linux.
but it does not change the window decoration (title bar and system buttons), someone knows how I can change the window decoration similar to that of linux please.  :(
PS: the qemu program in windows uses a linux theme and window decoration.

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
Re: use the beautiful linux themes on windows
« Reply #4 on: December 19, 2021, 06:23:41 pm »
any idea friends ?

AmatCoder

  • Jr. Member
  • **
  • Posts: 55
    • My site
Re: use the beautiful linux themes on windows
« Reply #5 on: December 19, 2021, 07:53:33 pm »
You can't change the window decoration with GTK2, only with GTK3.

Because GTK2 can only create a native window (with win32 API) and draw the content inside.
But GTK3 can draw the whole window (decoration included).

QEMU uses GTK3 so it can use a theme for windows decoration.

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
Re: use the beautiful linux themes on windows
« Reply #6 on: December 23, 2021, 03:44:02 am »
thanks for the information, a query, implementing gtk3 is easy just like gtk2

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: use the beautiful linux themes on windows
« Reply #7 on: December 23, 2021, 06:59:39 am »
thanks for the information, a query, implementing gtk3 is easy just like gtk2

Yes, apart from those bit of GTK3 that don't work in Lazarus, and, sadly, thats quite a lot.

Grab yourself a Linux ISO and install Linux, then you will be able to do, easily, what you want.  Join us, do not be afraid.....

Hmm, another approach would be to use QT5, there is a tool on Linux, and, guessing probably Windows too that allows you pre-define pretty much all of the colours for any Qt5 app.  I, guessing again, think you should be able to install the Qt5 libraries on Windows.

Davo

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
Re: use the beautiful linux themes on windows
« Reply #8 on: December 23, 2021, 07:56:01 am »
Thank you very much for the information friend, if I like linux, only that most of my users use windows, but honestly I would like to find a way to be able to work in linux and make a living from it, in linux I feel more free to do things.  :)

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: use the beautiful linux themes on windows
« Reply #9 on: December 23, 2021, 12:19:55 pm »
Thank you very much for the information friend, if I like linux, only that most of my users use windows, but honestly I would like to find a way to be able to work in linux and make a living from it, in linux I feel more free to do things.  :)

Hello.

If you want to be totally free for window decoration or window-form look, you may try mseide-msegui.

Create a form without frame and add a window decoration that you like.
No matter if your original source was done for Linux or Windows, the rendering will be exactly the same for each OS.
« Last Edit: December 23, 2021, 01:42:37 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
Re: use the beautiful linux themes on windows
« Reply #10 on: December 24, 2021, 04:14:30 am »
hi friends, i tried the program "mseide-msegui" it seems to be like an IDE just like lazarus. To be able to use it, it only works with fpc 3.0.4. when I tried it I did not understand much  %). But as "Fred vS" said, what I can do is create a window without borders and I draw it or else use images to create a window decoration, it seems like a good idea to me  ::) so I avoid problems by testing and testing.

Ericktux

  • Sr. Member
  • ****
  • Posts: 345
Re: use the beautiful linux themes on windows
« Reply #11 on: December 24, 2021, 04:31:04 am »
hello friends for now I think I'm going to use gtk2 is very easy to adapt it to the project (choose gtk2 widget in "project options"). I love how it decorates the buttons and other components of the program, it is very beautiful for me.  :-[
For the window decoration for now I will leave it as it is, maybe later I will create the window without borders and I will paint or decorate the title bar of the program with images.
Greetings to everyone, I leave you an image of how my application looks with gtk2 in windows 10x64.  :)
PS: I am aware that I will depend on several dll when distributing my exe, we will see how this works.
« Last Edit: December 24, 2021, 04:33:34 am by Ericktux »

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: use the beautiful linux themes on windows
« Reply #12 on: December 24, 2021, 09:16:51 am »
hi friends, i tried the program "mseide-msegui" it seems to be like an IDE just like lazarus. To be able to use it, it only works with fpc 3.0.4. when I tried it I did not understand much  %). But as "Fred vS" said, what I can do is create a window without borders and I draw it or else use images to create a window decoration, it seems like a good idea to me  ::) so I avoid problems by testing and testing.

Hello.

MSEide is the IDE and MSEgui is the widget-set.
It works with fpc 2.6.4, 3.0.0, 3.0.2, 3.0.4, 3.2.0, 3.2.2. and trunk 3.3.1.
There are demos here: https://github.com/mse-org/mseuniverse/
« Last Edit: December 24, 2021, 09:18:33 am by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018