aero-glass

How do you set the glass blend colour on Windows 10?

余生颓废 提交于 2019-11-27 06:55:29
Using the undocumented SetWindowCompositionAttribute API on Windows 10, it's possible to enable glass for a window. The glass is white or clear, as seen in this screenshot: However, the Windows 10 Start menu and the notification center, which both also uses glass, both blend with the accent colour, like so: How does it do it? Investigations The accent colour in the following examples is a light purple - here's a screenshot from the Settings app: The AccentPolicy structure defined in this example code has accent state, flags and gradient color fields: AccentPolicy = packed record AccentState:

Aero: How to draw solid (opaque) colors on glass?

断了今生、忘了曾经 提交于 2019-11-27 03:50:23
Using GDI+ to draw various colors: brush = new SolidBrush(color); graphics.FillRectangle(brush, x, y, width, height); You'll notice that no opaque color shows properly on glass: How do i draw solid colors on glass? You'll also notice that a fully opaque color is handled differently depending on what color it is: opaque black: fully transparent opaque color: partially transparent opaque white: fully opaque Can anyone point me to the documentation on the desktop compositor that explains how different colors are handled? Update 3 You'll also notice that FillRectangle behaves differently than

Documentation and API Samples for drawing on Windows Aero Glass (DWM, GDI, GDI+) for all Win32 programmers

谁都会走 提交于 2019-11-27 03:28:33
I am looking for good resources for learning to use the Win32/GDI APIs or whatever supercedes it to draw and paint directly using the Win32 API to a glass form. While I am using Delphi, I tagged this as Delphi or Visual C++. Any code samples and articles that you can find would be appreciated. MSDN articles do not seem to be written about this. As a goal, let's imagine you want to either: (a) Reproduce what Google Chrome does (tabs as part of the glass frame) (b) Reproduce what MS Office 2010 does (save button on the glass frame, referred to in MFC for VS 2010, as "Quick Access Toolbar" (see

Aero: How to draw ClearType text on glass?

寵の児 提交于 2019-11-27 01:57:01
问题 Using GDI+ to draw text on glass: graphics.DrawString(s, Length(s), font, MakePointF(x, y), brush); You'll notice that the ClearType enabled text draws very poorly on glass: But with glass disabled the text, of course, draw fine: By way of comparison here is Anti-alias font smoothing : And here is no font smoothing : Note : No font smoothing looks better than it really does because StackOverflow resizes the images on your monitor. How do i draw ClearType text on glass? Notes Win32 native not

Documentation and API Samples for drawing on Windows Aero Glass (DWM, GDI, GDI+) for all Win32 programmers

妖精的绣舞 提交于 2019-11-26 12:39:04
问题 I am looking for good resources for learning to use the Win32/GDI APIs or whatever supercedes it to draw and paint directly using the Win32 API to a glass form. While I am using Delphi, I tagged this as Delphi or Visual C++. Any code samples and articles that you can find would be appreciated. MSDN articles do not seem to be written about this. As a goal, let\'s imagine you want to either: (a) Reproduce what Google Chrome does (tabs as part of the glass frame) (b) Reproduce what MS Office

How do you set the glass blend colour on Windows 10?

旧城冷巷雨未停 提交于 2019-11-26 12:09:23
问题 Using the undocumented SetWindowCompositionAttribute API on Windows 10, it\'s possible to enable glass for a window. The glass is white or clear, as seen in this screenshot: However, the Windows 10 Start menu and the notification center, which both also uses glass, both blend with the accent colour, like so: How does it do it? Investigations The accent colour in the following examples is a light purple - here\'s a screenshot from the Settings app: The AccentPolicy structure defined in this

Background blur with CSS

▼魔方 西西 提交于 2019-11-26 08:03:30
问题 I want an Vista/7-aero-glass-style effect on a popup on my site, and it needs to be dynamic. I\'m fine with this not being a cross-browser effect as long as the site still works on all modern browsers. My first attempt was to use something like #dialog_base { background:white; background:rgba(255,255,255,0.8); filter:blur(4px); -o-filter:blur(4px); -ms-filter:blur(4px); -moz-filter:blur(4px); -webkit-filter:blur(4px); } However, as I should have expected, this resulted in the content of the