Update v1.02.3
- Added GetThemeIsDark
I've customised it a bit. Should work now ;)
See above
Here an example ...
Update 1.02
- use signal now
;-TOP example
IncludeFile "GTK-Darkmode.pb"
Enumeration customEvent #PB_Event_FirstCustomValue
#MyEvent_ChangeDarkMode
EndEnumeration
Global ...
Search found 5202 matches
- Thu Aug 28, 2025 3:28 pm
- Forum: Linux
- Topic: GTK3 DarkMode
- Replies: 6
- Views: 1381
- Wed Aug 27, 2025 1:09 pm
- Forum: Linux
- Topic: GTK3 DarkMode
- Replies: 6
- Views: 1381
Re: GTK3 DarkMode
What I have found so far is only about a trick ...
;-TOP
; GTK GetWindowColor by mk-soft, v1.01.1, 27.08.2023
ImportC ""
gtk_window_get_titlebar(window)
gtk_widget_get_style_context(Widget)
gtk_style_context_get_background_color(context, state, pcolor)
EndImport
#GTK_STATE_FLAG_NORMAL = 0 ...
;-TOP
; GTK GetWindowColor by mk-soft, v1.01.1, 27.08.2023
ImportC ""
gtk_window_get_titlebar(window)
gtk_widget_get_style_context(Widget)
gtk_style_context_get_background_color(context, state, pcolor)
EndImport
#GTK_STATE_FLAG_NORMAL = 0 ...
- Mon Aug 25, 2025 3:23 pm
- Forum: Bugs - Mac OSX
- Topic: Mac OS/X beta 26
- Replies: 9
- Views: 611
Re: Mac OS/X beta 26
I won't get macOS 26 (Tahoe) for my Mac Mini 2018. Is not longer supported
Thus, I can no longer test which framework like AGL no longer exists.
Please test everyone who supports macOS Tahoe with PureBasic v6.21 and the next PureBasic 6.30 beta.

Thus, I can no longer test which framework like AGL no longer exists.
Please test everyone who supports macOS Tahoe with PureBasic v6.21 and the next PureBasic 6.30 beta.
- Fri Aug 22, 2025 6:21 pm
- Forum: Tricks 'n' Tips
- Topic: Simple toggle trick
- Replies: 19
- Views: 915
Re: Simple toggle trick
Short way for ASM and C backend
Code: Select all
Macro Toggle(x)
x=~x&1
EndMacro
a=#True
Toggle(a)
Debug a
Toggle(a)
Debug a
Toggle(a)
Debug a
- Fri Aug 22, 2025 6:06 pm
- Forum: Tricks 'n' Tips
- Topic: Simple toggle trick
- Replies: 19
- Views: 915
Re: Simple toggle trick
Is not better because ABS first converts everything into double and then back again
- Fri Aug 22, 2025 11:29 am
- Forum: Linux
- Topic: GTK3 DarkMode
- Replies: 6
- Views: 1381
Re: GTK3 DarkMode
Update v1.02.2
- Warning on new kernel: Change set/get property
I was bothered by the compiler warnings from g_object_get/set on the new kernel 6.12
Unfortunately, this only works with themes that support both modes. Like Adwaita or with many themes of Mint Linux.
- Warning on new kernel: Change set/get property
I was bothered by the compiler warnings from g_object_get/set on the new kernel 6.12
Unfortunately, this only works with themes that support both modes. Like Adwaita or with many themes of Mint Linux.
- Thu Aug 21, 2025 10:39 am
- Forum: Coding Questions
- Topic: linux glib g_node_append_data_ compile error
- Replies: 4
- Views: 228
Re: linux glib g_node_append_data_ compile error
You only have to open the library file (.so) with OpenLibrary yourself in rare cases.
Most functions are fully implemented and sometimes with ImportC "" to define yourself.
Macros cannot be imported and must be written by yourself.
1. A so file cannot be imported but must be opened with OpenLibrary ...
Most functions are fully implemented and sometimes with ImportC "" to define yourself.
Macros cannot be imported and must be written by yourself.
1. A so file cannot be imported but must be opened with OpenLibrary ...
- Wed Aug 20, 2025 7:43 pm
- Forum: General Discussion
- Topic: Lost my account information.
- Replies: 9
- Views: 575
Re: Lost my account information.
It doesn't help if the saved e-mail address no longer exists.
A new password will be sent to your login e-mail address (or contact e-mail address if you have set it in your user account). It is not possible to retrieve your original password because it is stored using hash format in the database.
- Wed Aug 20, 2025 3:58 pm
- Forum: Coding Questions
- Topic: linux glib g_node_append_data_ compile error
- Replies: 4
- Views: 228
Re: linux glib g_node_append_data_ compile error
Ok ...
It's a macro
You can also search for files content in linux file manager. Open to the folder "/usr/include" and search in it
It's a macro
You can also search for files content in linux file manager. Open to the folder "/usr/include" and search in it
Code: Select all
Macro g_node_append_data(parent, daten)
g_node_insert_before_(parent, #Null, g_node_new_(daten))
EndMacro
;test
g_node_append_data(0,0)
- Wed Aug 20, 2025 3:41 pm
- Forum: Coding Questions
- Topic: linux glib g_node_append_data_ compile error
- Replies: 4
- Views: 228
Re: linux glib g_node_append_data_ compile error
Import not work because is deprecated (or a macro)
What do you want to do?
Link: https://docs.gtk.org/glib/func.node_append_data.html
What do you want to do?
Link: https://docs.gtk.org/glib/func.node_append_data.html
Code: Select all
ImportC ""
g_node_append_data (parent, daten)
EndImport
;test
g_node_append_data(0,0)
- Wed Aug 20, 2025 2:15 pm
- Forum: General Discussion
- Topic: Lost my account information.
- Replies: 9
- Views: 575
Re: Lost my account information.
The login name is your old email address (this never changes as a login name)
Now you have to (only) remember your old password ...
Now you have to (only) remember your old password ...

- Wed Aug 20, 2025 1:33 pm
- Forum: Bugs - Linux
- Topic: [PB 6.21] Canvas Gadget #PB_EventType_Resize unreliable
- Replies: 2
- Views: 285
Re: [PB 6.21] Canvas Gadget #PB_EventType_Resize unreliable
Is probably an old mistake with the gadget resise event in Linux. But I didn't notice because I always re-drain in Event Size Window.
But you can bind the event yourself under Linux
Procedure RedrawCanvas()
If StartVectorDrawing(CanvasVectorOutput(0))
w=VectorOutputWidth()
h ...
But you can bind the event yourself under Linux
Procedure RedrawCanvas()
If StartVectorDrawing(CanvasVectorOutput(0))
w=VectorOutputWidth()
h ...
- Mon Aug 18, 2025 7:54 pm
- Forum: Coding Questions
- Topic: CLCL plugin (?)
- Replies: 4
- Views: 415
- Mon Aug 18, 2025 5:44 pm
- Forum: Feature Requests and Wishlists
- Topic: Dark mode
- Replies: 20
- Views: 1841
Re: Dark mode
Windows Standard Controls Not Supported Dark-Mode. Only DotNet Framework. Thanks Microsoft ...
- Thu Aug 14, 2025 1:24 pm
- Forum: Coding Questions
- Topic: why I cannot write a procedure in the loop event
- Replies: 19
- Views: 872
Re: why I cannot write a procedure in the loop event
Call up recurring tasks with a timer.
Write down the processes for the tasks in advance.
A ( meaningful) structure ...
Template
;-TOP
#ProgramTitle = "Main Window"
#ProgramVersion = "v1.01.2"
Enumeration Windows
#Main
EndEnumeration
Enumeration MenuBar
#MainMenu
EndEnumeration
Enumeration ...
Write down the processes for the tasks in advance.
A ( meaningful) structure ...
Template
;-TOP
#ProgramTitle = "Main Window"
#ProgramVersion = "v1.01.2"
Enumeration Windows
#Main
EndEnumeration
Enumeration MenuBar
#MainMenu
EndEnumeration
Enumeration ...