 +		delete fBitmap;
 +		fBitmap = NULL;
 +	}
++
++	fDisabledBitmap = new BBitmap(fBitmap);
++	rgb_color* pixel = (rgb_color*)fDisabledBitmap->Bits();
++	for(int i = 0; i < fDisabledBitmap->BitsLength()/4; i++)
++	{
++		*pixel = tint_color(*pixel, B_DISABLED_MARK_TINT);
++		pixel++;
++	}
 +#else
 +	// No vector icon support on BeOS. We could try to load a bitmap one
 +	fBitmap = NULL;
++	fDisabledBitmap = NULL;
 +#endif
 +}
 +

+		void SetBitmap(const char* attrName);
+	private:
+		BBitmap* fBitmap;
+};
+
+

 			}
 			pos += BPoint(20, 20);
 			BScreen screen;
@@ -2038,14 +2167,13 @@ nsbeos_scaffolding *nsbeos_new_scaffolding(struct gui_window *toplevel)
 	rect = g->top_view->Bounds();
 	rect.bottom = rect.top + TOOLBAR_HEIGHT - 1;
 	rect.right = rect.right - DRAGGER_WIDTH;
