mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-08-28 21:50:46 +02:00
chore: linting
This commit is contained in:
+1
-1
@@ -188,7 +188,7 @@ fn generate_tray_icons() {
|
|||||||
// macOS will automatically handle light/dark mode by inverting the icon
|
// macOS will automatically handle light/dark mode by inverting the icon
|
||||||
// For template icons: RGB should be 0,0,0 (black) and alpha controls visibility
|
// For template icons: RGB should be 0,0,0 (black) and alpha controls visibility
|
||||||
let data = pixmap.data_mut();
|
let data = pixmap.data_mut();
|
||||||
for pixel in data.chunks_exact_mut(4) {
|
for pixel in data.as_chunks_mut::<4>().0 {
|
||||||
// Keep the original alpha (shows where icon content is)
|
// Keep the original alpha (shows where icon content is)
|
||||||
// but make the color black for template icon format
|
// but make the color black for template icon format
|
||||||
pixel[0] = 0; // R
|
pixel[0] = 0; // R
|
||||||
|
|||||||
Reference in New Issue
Block a user