File tree 3 files changed +13
-3
lines changed
uis/src/com/biglybt/ui/swt/views
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -986,7 +986,13 @@ public void handleEvent(Event ev) {
986
986
987
987
loadThumb ();
988
988
989
- genComposite .layout ();
989
+ // If we force a layout on win dark mode the Link labels background flash white
990
+ // Couldn't figure out why but not sure why we need this layout anyway
991
+
992
+ if ( !Utils .isDarkAppearanceNativeWindows ()){
993
+
994
+ genComposite .layout ();
995
+ }
990
996
}
991
997
992
998
public Composite getComposite () {
@@ -1529,6 +1535,10 @@ private void updatePiecesInfo(boolean bForce) {
1529
1535
return ;
1530
1536
}
1531
1537
1538
+ if ( pImage == null || pImage .isDisposed ()){
1539
+ bForce = true ;
1540
+ }
1541
+
1532
1542
if ( piecesImageRefreshNeeded ){
1533
1543
bForce = true ;
1534
1544
piecesImageRefreshNeeded = false ;
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public class TorrentInfoView
118
118
}
119
119
120
120
if (showHeader ) {
121
- Composite cHeader = new Composite (panel , SWT .BORDER );
121
+ Composite cHeader = new Composite (panel , Utils . isDarkAppearanceNativeWindows ()? SWT . NONE : SWT .BORDER );
122
122
GridLayout configLayout = new GridLayout ();
123
123
configLayout .marginHeight = 3 ;
124
124
configLayout .marginWidth = 0 ;
Original file line number Diff line number Diff line change 155
155
}
156
156
157
157
if (showHeader ) {
158
- Composite cHeader = new Composite (panel , SWT .BORDER );
158
+ Composite cHeader = new Composite (panel , Utils . isDarkAppearanceNativeWindows ()? SWT . NONE : SWT .BORDER );
159
159
GridLayout configLayout = new GridLayout ();
160
160
configLayout .marginHeight = 3 ;
161
161
configLayout .marginWidth = 0 ;
You can’t perform that action at this time.
0 commit comments