mirror of https://github.com/adamdruppe/arsd.git
Add corner-style preference setting to PixmapPresenter
This commit is contained in:
parent
bbc7aec494
commit
b6b12995f9
|
@ -408,8 +408,26 @@ struct PresenterConfig {
|
||||||
|
|
||||||
///
|
///
|
||||||
static struct Window {
|
static struct Window {
|
||||||
|
///
|
||||||
string title = "ARSD Pixmap Presenter";
|
string title = "ARSD Pixmap Presenter";
|
||||||
|
|
||||||
|
///
|
||||||
Size size;
|
Size size;
|
||||||
|
|
||||||
|
/++
|
||||||
|
Window corner style
|
||||||
|
|
||||||
|
$(NOTE
|
||||||
|
At the time of writing, this is only implemented on Windows.
|
||||||
|
It has no effect elsewhere for now but does no harm either.
|
||||||
|
|
||||||
|
Windows: Requires Windows 11 or later.
|
||||||
|
)
|
||||||
|
|
||||||
|
History:
|
||||||
|
Added September 10, 2024.
|
||||||
|
+/
|
||||||
|
CornerStyle corners = CornerStyle.rectangular;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -911,6 +929,7 @@ final class PixmapPresenter {
|
||||||
);
|
);
|
||||||
|
|
||||||
window.windowResized = &this.windowResized;
|
window.windowResized = &this.windowResized;
|
||||||
|
window.cornerStyle = config.window.corners;
|
||||||
|
|
||||||
// alloc objects
|
// alloc objects
|
||||||
_poc = new PresenterObjectsContainer(
|
_poc = new PresenterObjectsContainer(
|
||||||
|
|
Loading…
Reference in New Issue