跳至主要內容
岛风的港区

岛风的港区

这里是岛风的港区,这里充满了自然的气息(破败且杂草丛生)。

Shimakaze.SDK
致力于为RA2模组开发带来现代开发模式
FTL-Guide
汇集各种各样开发时用到的工具的源和(或)代理配置方法
Template Router

不知道各位前端人有没有因为添加页面需要去修改router.ts而烦恼过?

咱在这里隆重推荐一款vite插件,它可以使你从切换.vue和router.ts中解放出来,您只需要在.vue文件中编写路由即可

Template Router

<template path="/path" layout="Layout">
  <!-- ... -->
</template>

舰队的偶像-岛风酱!小于 1 分钟前端VueVue3前端VueVue3Vitevue-router
部署 stable-diffusion-webui-docker

部署 stable-diffusion-webui-docker

前置条件

步骤

  1. 克隆项目 stable-diffusion-webui-docker
    git clone https://github.com/AbdBarho/stable-diffusion-webui-docker --depth=1
    cd stable-diffusion-webui-docker
    
  2. 运行命令
    docker compose --profile download up --build
    
  3. 全部下载完成后运行
    你可以在项目的readme那里看到不同的ui界面
    # where [ui] is one of: invoke | auto | auto-cpu | sygil | sygil-sl
    $ui = 'auto'
    docker compose --profile $ui up --build
    

舰队的偶像-岛风酱!大约 1 分钟aiaistable-diffusion
WPF 捕获系统主题改变

Language Version: C# 8.0

WPF 捕获系统主题改变

通过System.Windows.Interop

using System.Windows.Interop;

// this is Window 可以写在构造方法里
    this.SourceInitialized += Theme.ThemeManager.Window_SourceInitialized;

// see "https://stackoverflow.com/questions/13660976/get-the-active-color-of-windows-8-automatic-color-theme"
void Window_SourceInitialized(object sender, EventArgs e)
{
    IntPtr hwnd;
    if ((hwnd = new WindowInteropHelper(sender as Window).Handle) == IntPtr.Zero)
        throw new InvalidOperationException("Could not get window handle.");

    HwndSource.FromHwnd(hwnd).AddHook(WndProc);
}

const int WM_DWMCOLORIZATIONCOLORCHANGED = 0x320;
// see "https://stackoverflow.com/questions/13660976/get-the-active-color-of-windows-8-automatic-color-theme"
IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
    switch (msg)
    {
        case WM_DWMCOLORIZATIONCOLORCHANGED:
            /*
             * Update gradient brushes with new color information from
             * NativeMethods.DwmGetColorizationParams() or the registry.
             */

            return IntPtr.Zero;
        default:
            return IntPtr.Zero;
    }
}

舰队的偶像-岛风酱!小于 1 分钟.NetWPF.NetWPFC#

欢迎参观我的港区,希望你能在这里找到需要的东西!