@@ -100,8 +100,6 @@ - (instancetype)init
100
100
object: [scroll_view contentView ]];
101
101
102
102
[self setContentView: scroll_view];
103
- self.backgroundColor = [NSColor windowBackgroundColor ];
104
- self.titlebarAppearsTransparent = YES ;
105
103
}
106
104
107
105
return self;
@@ -226,7 +224,6 @@ - (void)loadURL:(URL const&)url
226
224
- (void )onLoadStart : (URL const &)url isRedirect : (BOOL )is_redirect
227
225
{
228
226
if (url != self.last_url ) {
229
- self.backgroundColor = [NSColor windowBackgroundColor ];
230
227
self.last_url = url;
231
228
}
232
229
@@ -258,23 +255,6 @@ - (void)onTitleChange:(DeprecatedString const&)title
258
255
[self updateTabTitleAndFavicon ];
259
256
}
260
257
261
- - (void )onThemeColorChange : (Color)color
262
- {
263
- auto * nscolor = [NSColor colorWithRed: ((CGFloat)color.red ()) / 255.0
264
- green: ((CGFloat)color.green ()) / 255.0
265
- blue: ((CGFloat)color.blue ()) / 255.0
266
- alpha: 1.0 ];
267
- CGFloat hue = 0.0 ;
268
- CGFloat saturation = 0.0 ;
269
- CGFloat brightness = 0.0 ;
270
- [nscolor getHue: &hue saturation: &saturation brightness: &brightness alpha: nil ];
271
- if (brightness > 0.75 )
272
- brightness = 0.75 ;
273
- nscolor = [NSColor colorWithHue: hue saturation: saturation brightness: brightness alpha: 1.0 ];
274
- self.backgroundColor = nscolor;
275
- self.titlebarAppearsTransparent = YES ;
276
- }
277
-
278
258
- (void )onFaviconChange : (Gfx::Bitmap const &)bitmap
279
259
{
280
260
static constexpr size_t FAVICON_SIZE = 16 ;
0 commit comments