use the beautiful linux themes on windows lazarus / 34-Windows ---------------------------------------------------------------------- Ericktux · 2021-12-11 05:57 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 · 2021-12-11 08:00 Let Windows be Windows and Linux be Linux. ---------------------------------------------------------------------- Ñuño_Martínez · 2021-12-11 19:11 It is the GTK+ library.  Compile your application to use GTK+ instead of WinAPI.  Of course your application will need the GTK+ DLL files. ---------------------------------------------------------------------- Ericktux · 2021-12-13 23:59 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 · 2021-12-19 17:23 any idea friends ? ---------------------------------------------------------------------- AmatCoder · 2021-12-19 18:53 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 · 2021-12-23 02:44 thanks for the information, a query, implementing gtk3 is easy just like gtk2 ---------------------------------------------------------------------- dbannon · 2021-12-23 05:59 Quote from: Ericktux on December 23, 2021, 03:44:02 amthanks 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 ---------------------------------------------------------------------- Ericktux · 2021-12-23 06:56 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 · 2021-12-23 11:19 Quote from: Ericktux on December 23, 2021, 07:56:01 amThank 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. ---------------------------------------------------------------------- Ericktux · 2021-12-24 03:14 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 · 2021-12-24 03:31 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. ---------------------------------------------------------------------- Fred vS · 2021-12-24 08:16 Quote from: Ericktux on December 24, 2021, 04:14:30 amhi 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/