Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0516a61
Merge pull request #239 from zarunbal/Development
Hirogen Jul 20, 2022
cb39ad4
added credits
Hirogen Jul 20, 2022
eab2cf8
update readme
Hirogen Jul 20, 2022
b60a6b0
Trying to apply a darker style
jlrouzies-mantu Jul 26, 2022
d59bff9
implement dark mode as setting
jlrouzies-mantu Jul 26, 2022
92c3a86
Converting more to dark mode
jlrouzies-mantu Jul 26, 2022
8a95220
Added more menu items
jlrouzies-mantu Jul 26, 2022
b0af787
move color mode to config
jlrouzies-mantu Jul 26, 2022
d3b758c
Change approach: update colors after initizalize
jlrouzies-mantu Jul 26, 2022
12df0bc
Set title bar dark mode
jlrouzies-mantu Jul 26, 2022
f898e2a
improve menus parsing
jlrouzies-mantu Jul 26, 2022
3461957
separate forms extensions and move to correct folder
jlrouzies-mantu Jul 26, 2022
c138681
update project file
jlrouzies-mantu Jul 26, 2022
a0407db
Apply dark / bright theme based on color palette
jlrouzies-mantu Jul 26, 2022
e2e98ea
Apply style to menu in datagrid
jlrouzies-mantu Jul 26, 2022
272fc32
Adjust default line background
jlrouzies-mantu Jul 26, 2022
52052e6
Color dataGrid columns, trying foreground no success
jlrouzies-mantu Jul 26, 2022
0a78ecd
Fixed specific separators
jlrouzies-mantu Jul 26, 2022
9e1ebfd
fix default text color
jlrouzies-mantu Jul 27, 2022
ab188a1
Apply theme to tabs menu and bookmarks
jlrouzies-mantu Jul 27, 2022
dbc112d
Improve menus hover colors
jlrouzies-mantu Jul 27, 2022
c22f57a
Apply style to tabs
jlrouzies-mantu Jul 27, 2022
7855d4b
Rename class
jlrouzies-mantu Jul 27, 2022
8b26241
Fixed menus borders and timeshift background
jlrouzies-mantu Jul 27, 2022
076c103
Moved tab code in region
jlrouzies-mantu Jul 27, 2022
027cd52
fix toolstrip visible border
jlrouzies-mantu Jul 27, 2022
a91007d
Apply style to no bookmarks background
jlrouzies-mantu Jul 27, 2022
875c8af
Apply style to more menu strips
jlrouzies-mantu Jul 27, 2022
f820fc5
Fixed pro filters alignment and logo for colors
jlrouzies-mantu Jul 27, 2022
face6f0
Fix filter textbox background
jlrouzies-mantu Jul 27, 2022
0d0791a
Apply color to bookmark cells
jlrouzies-mantu Jul 27, 2022
c70d908
Remove unused new comment code
jlrouzies-mantu Jul 28, 2022
6e88e19
Log error if happens
jlrouzies-mantu Jul 28, 2022
adbcd03
Small code cleaning
jlrouzies-mantu Jul 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trying to apply a darker style
  • Loading branch information
jlrouzies-mantu committed Jul 26, 2022
commit b60a6b0e5c687df0f5ae9693aaeb302ecb92a301
37 changes: 37 additions & 0 deletions src/LogExpert/Controls/DarkTitleBar.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace LogExpert.Controls
{
class DarkTitleBar
{
[DllImport("dwmapi.dll")]
private static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);

private const int DWMWA_USE_IMMERSIVE_DARK_MODE_BEFORE_20H1 = 19;
private const int DWMWA_USE_IMMERSIVE_DARK_MODE = 20;

public static bool UseImmersiveDarkMode(IntPtr handle, bool enabled)
{

var attribute = DWMWA_USE_IMMERSIVE_DARK_MODE_BEFORE_20H1;
if (IsWindows10OrGreater(18985))
{
attribute = DWMWA_USE_IMMERSIVE_DARK_MODE;
}

int useImmersiveDarkMode = enabled ? 1 : 0;
return DwmSetWindowAttribute(handle, (int)attribute, ref useImmersiveDarkMode, sizeof(int)) == 0;

}

private static bool IsWindows10OrGreater(int build = -1)
{
return Environment.OSVersion.Version.Major >= 10 && Environment.OSVersion.Version.Build >= build;
}
}
}
1 change: 1 addition & 0 deletions src/LogExpert/Controls/LogTabWindow/LogTabWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,5 +254,6 @@ internal class StaticLogTabWindowData

#endregion
}

}
}
254 changes: 133 additions & 121 deletions src/LogExpert/Controls/LogTabWindow/LogTabWindow.designer.cs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/LogExpert/Controls/LogTabWindow/LogTabWindow.resx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<data name="toolStripButtonBubbles.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAADRSURBVDhPvZEhDoQwEEU5D5ID4LkAHo/BIbFIHBaLRqKQ
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADRSURBVDhPvZEhDoQwEEU5D5ID4LkAHo/BIbFIHBaLRqKQ
CDyCs8zmNQNT0SzNin3Jz5Tmvya0yc2yLDJNU1ToqmaM4yjXdUWFQ1QzOOA8z6jQVc0YhkGO43AFf4b2
6Kpm9H0v+74/kr/2v5l0VTO6rpNt21zhbdJVzWiaRtZ1jQpd1Yy6rt3zxISuakZVVTLPc1ToqmaUZen+
774o3prnYvr7TLqqGW3bSlEUT5AJkr9P6KoWJs9z91TcOuvgpX0jyzInM4MX9gZSmqa/yX8mST5z+a54
Expand All @@ -140,7 +140,7 @@
<data name="toolStripButtonTail.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
Expand Down
191 changes: 94 additions & 97 deletions src/LogExpert/Controls/LogWindow/LogWindow.designer.cs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/LogExpert/Controls/LogWindow/LogWindowEventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1497,5 +1497,6 @@ private void OnDataGridViewRowUnshared(object sender, DataGridViewRowEventArgs e
#endregion

#endregion

}
}
1 change: 1 addition & 0 deletions src/LogExpert/Controls/LogWindow/LogWindowPrivate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3713,5 +3713,6 @@ private void SelectColumn()
}

#endregion

}
}
2 changes: 2 additions & 0 deletions src/LogExpert/Controls/LogWindow/LogWindowsPublic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1785,5 +1785,7 @@ public void RefreshLogView()
}

#endregion


}
}
1 change: 1 addition & 0 deletions src/LogExpert/LogExpert.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
<Compile Include="Config\Settings.cs" />
<Compile Include="Config\SettingsFlags.cs" />
<Compile Include="Config\ToolEntry.cs" />
<Compile Include="Controls\DarkTitleBar.cs" />
<Compile Include="Controls\LogTabWindow\LogTabWindowEventHandlers.cs">
<SubType>Form</SubType>
</Compile>
Expand Down