mirror of https://github.com/adamdruppe/arsd.git
Support slightly rounded window corners too
This commit is contained in:
parent
b6b12995f9
commit
a9a596dc20
|
@ -1237,9 +1237,11 @@ version(Windows) {
|
||||||
result = CornerStyle.rectangular;
|
result = CornerStyle.rectangular;
|
||||||
return true;
|
return true;
|
||||||
case DWMWCP_ROUND:
|
case DWMWCP_ROUND:
|
||||||
case DWMWCP_ROUNDSMALL:
|
|
||||||
result = CornerStyle.rounded;
|
result = CornerStyle.rounded;
|
||||||
return true;
|
return true;
|
||||||
|
case DWMWCP_ROUNDSMALL:
|
||||||
|
result = CornerStyle.roundedSlightly;
|
||||||
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1259,6 +1261,9 @@ version(Windows) {
|
||||||
case CornerStyle.rounded:
|
case CornerStyle.rounded:
|
||||||
result = DWMWCP_ROUND;
|
result = DWMWCP_ROUND;
|
||||||
return true;
|
return true;
|
||||||
|
case CornerStyle.roundedSlightly:
|
||||||
|
result = DWMWCP_ROUNDSMALL;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1908,6 +1913,11 @@ enum CornerStyle {
|
||||||
Prefer rounded window corners
|
Prefer rounded window corners
|
||||||
+/
|
+/
|
||||||
rounded,
|
rounded,
|
||||||
|
|
||||||
|
/++
|
||||||
|
Prefer slightly-rounded window corners
|
||||||
|
+/
|
||||||
|
roundedSlightly,
|
||||||
}
|
}
|
||||||
|
|
||||||
/++
|
/++
|
||||||
|
|
Loading…
Reference in New Issue