Skip to content

Commit

Permalink
Fixed: Dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
XusinboyBekchanov committed Jan 14, 2025
1 parent 9fcb597 commit 2207c77
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Main.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6413,7 +6413,7 @@ Sub LoadSettings
*CurrentTheme = IIf(DarkMode, "Dark (Visual Studio)", "Default Theme")
End If
#ifdef __USE_WINAPI__
If DarkMode Then
If DarkMode AndAlso g_darkModeSupported Then
txtLabelProperty.BackColor = darkBkColor
txtLabelEvent.BackColor = darkBkColor
fAddIns.txtDescription.BackColor = GetSysColor(COLOR_WINDOW)
Expand Down
24 changes: 22 additions & 2 deletions src/VisualFBEditor.bas
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Sub mClick(ByRef Designer_ As My.Sys.Object, Sender As My.Sys.Object)
UpdateAllTabWindows
End If
#ifdef __USE_WINAPI__
If DarkMode Then
If DarkMode AndAlso g_darkModeSupported Then
txtLabelProperty.BackColor = darkBkColor
txtLabelEvent.BackColor = darkBkColor
fAddIns.txtDescription.BackColor = darkBkColor
Expand Down Expand Up @@ -354,7 +354,7 @@ Sub mClick(ByRef Designer_ As My.Sys.Object, Sender As My.Sys.Object)
'#ifndef __USE_GTK__
ChangeEnabledDebug False, True, True
'brk_set(12)
'runtype=RTAUTO
'runtype = RTAUTO
'#ifdef __FB_WIN32__
' set_cc()
'#else
Expand All @@ -368,9 +368,29 @@ Sub mClick(ByRef Designer_ As My.Sys.Object, Sender As My.Sys.Object)
'runtype = RTRUN
'thread_resume()
'#endif
'runtype = RTAUTO
'#ifdef __FB_WIN32__
' set_cc()
'#else
' If ccstate = KCC_NONE Then
' msgdata = 1 ''CC everywhere
' exec_order(KPT_CCALL)
' End If
'#endif
'thread_set()
ElseIf UseDebugger Then
runtype = RTFRUN
'runtype = RTRUN
'runtype = RTAUTO
'#ifdef __FB_WIN32__
' set_cc()
'#else
' If ccstate = KCC_NONE Then
' msgdata = 1 ''CC everywhere
' exec_order(KPT_CCALL)
' End If
'#endif
'thread_set()
SetTimer(0, GTIMER001, 1, Cast(Any Ptr, @DEBUG_EVENT))
CurrentTimer = SetTimer(0, 0, 1, @TIMERPROC)
ThreadCounter(ThreadCreate_(@StartDebuggingWithCompile))
Expand Down
2 changes: 1 addition & 1 deletion src/frmOptions.frm
Original file line number Diff line number Diff line change
Expand Up @@ -3818,7 +3818,7 @@ Private Sub frmOptions.cmdApply_Click(ByRef Designer As My.Sys.Object, ByRef Sen
pfrmMain->RequestAlign
SetDarkMode DarkMode, False
#ifdef __USE_WINAPI__
If DarkMode Then
If DarkMode AndAlso g_darkModeSupported Then
txtLabelProperty.BackColor = darkBkColor
txtLabelEvent.BackColor = darkBkColor
fAddIns.txtDescription.BackColor = GetSysColor(COLOR_WINDOW)
Expand Down

0 comments on commit 2207c77

Please sign in to comment.