Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 Windows 11 Fluent 风格并修复了一个崩溃问题 #126

Merged
merged 9 commits into from
Mar 3, 2024

Conversation

NotYoojun
Copy link
Contributor

@NotYoojun NotYoojun commented Dec 27, 2023

  • 为程序整体使用了 Windows 11 Fluent 风格 (包括按钮,ToggleSwitch,消息框,图标等所有控件) 并做了相对应的一些优化
  • 修复了选择墨迹后一直重复增加 (或减小) 笔画粗细之后带来的崩溃问题
  • 优化 csproj 文件,并应用 SDK 样式
  • 将图标使用到 Segoe Fluent Icons (Switch to Fluent Icons #117 不再需要)

头一次为这个项目做出贡献,望大佬们通过和建议!谢谢

@NotYoojun
Copy link
Contributor Author

image image image image image

我自己电脑上这一句话编译不通过,就先注释掉了。然后 pull request 的时候忘记取消注释了。记得改回来,抱歉啊
@NotYoojun
Copy link
Contributor Author

@WXRIW 我自己电脑上这一句话编译不通过,就先注释掉了。然后 pull request 的时候忘记取消注释了。记得改回来,抱歉啊

image

改回来之后的 StoreHelper.cs:

namespace Ink_Canvas.Helpers
{
    public static class StoreHelper
    {
        public static bool IsStoreApp
        {
            get
            {
                try
                {
                    object GetCurrentPackage()
                    {
                        return Windows.ApplicationModel.Package.Current;
                    }

                    if (GetCurrentPackage() != null)
                    {
                        return true;
                    }
                    return false;
                }
                catch
                {
                    return false;
                }
            }
        }
    }
}

@NotYoojun
Copy link
Contributor Author

好了,把WinRT的部分解决了,顺便优化了下csproj文件

控件库里面的信息框暂时还不能用,先换回原来的
@KremeCN
Copy link

KremeCN commented Jan 3, 2024

image
这俩开关好小 ovo

@NotYoojun
Copy link
Contributor Author

image
这俩开关好小 ovo

Viewbox 的问题,我回头看下

@KremeCN
Copy link

KremeCN commented Jan 3, 2024

image
工具栏的按钮也是有亮有暗

@NotYoojun
Copy link
Contributor Author

image image

我这边都没问题啊 你是不是编译的最新版

@KremeCN
Copy link

KremeCN commented Jan 4, 2024

image image
我这边都没问题啊 你是不是编译的最新版

好吧,确实不是最新版。我的问题,对不起 qwq

@Raspberry-Monster Raspberry-Monster changed the base branch from master to bug-fixes March 3, 2024 06:11
@Raspberry-Monster Raspberry-Monster merged commit 9a50c6f into WXRIW:bug-fixes Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants