This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Extended MetroWindow with BlurBehind and compatibility with both MahApps and MaterialDesignInXamlToolkit | |
/// </summary> | |
public class AcrylicWindow : MetroWindow | |
{ | |
internal enum AccentState | |
{ | |
ACCENT_DISABLED = 1, // Disabled | |
ACCENT_ENABLE_GRADIENT = 0, // No idea, it's gray no matter what | |
ACCENT_ENABLE_TRANSPARENTGRADIENT = 2, // Painted with accent colour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FlowDocumentConverter | |
{ | |
/// <summary> | |
/// Converts a FlowDocument to a bitmap you can save or print | |
/// </summary> | |
/// <remarks> | |
/// No longer used | |
/// </remarks> | |
/// <param name="document"></param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* General-purpose NodeJS CLI/API wrapping the Stable-Diffusion python scripts. | |
* | |
* Note that this uses an older fork of stable-diffusion | |
* with the 'txt2img.py' script, and that script was modified to | |
* support the --outfile command. | |
*/ | |
var { spawn, exec } = require("child_process"); | |
var path = require("path"); |