Giter Site home page Giter Site logo

divergencemeter's Introduction

命运石之门时钟挂件

开发相关

开发工具:vistual studio 2019 Community

开发语言:C#

开发环境:Window 10 2004 && .net core 3.1

开发技术: Windows Presentation Foundation (WPF)

开发依赖:Hardcodet.NotifyIcon.Wpf Newtonsoft.Json

实现功能

  • 开机自启
  • 点击穿透
  • 拖动允许
  • 边缘吸附
  • 窗口置顶
  • 透明度设置
  • 世界线变动效果(鼠标右击)

使用说明

  1. 直接从 exe 文件夹中下载安装,即可食用。如果想查看并修改源代码,执行下一步。

  2. Github.com 或者 Gitee.com 下载源代码

  3. 如果你使用 dotnet cli ,请在 shell 下 输入如下命令:

    // cmd or powershell or git bash etc
    // path .../DivergenceMeter/
    
    dotnet restore
    dotnet run --project DivergenceMeter
  4. 如果你使用 vistual studio 2019,点击 DivergenceMeter.sln 解决方案,等待自动恢复项目的依赖项和工具 ,最后调试项目或者发布应用。

  5. 理论上是可以生成 基于 .net framework 应用,只需要将 TargetFramework 属性设置成对应的版本。参考:SDK 样式项目中的目标框架

  6. 使用 Inno Setup 进行打包,分别打包为 net472netcore31 的应用,需要计算机自带 net framework 4.7.2.net core 3.1 的运行环境

项目说明

项目参考于 RainmeterDIvergence Meter 皮肤插件,皮肤作者:waicool20

大约一个月学习 C# 和 WPF 的成果,但这个挂件应用没有用到 WPF 的 MVVM 机制,因为在 WPF 中对象和 UI 之间的绑定(太难理解了),这跟前端框架 VUE 不太一样。

因此,这些效果的出现全都是直接使用事件驱动的方式,当事件触发后给 UI 设置对应的 属性。

补充说明

欢迎 PR,欢迎 Issues。

divergencemeter's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.