![rainmeter使用教程](https://i-blog.csdnimg.cn/blog_migrate/7d7e764afa6411f6b8184d9b8016c882.png)
rainmeter使用教程
![image image](https://i-blog.csdnimg.cn/blog_migrate/37eb710e7ae437121bb95700bc51eb47.png)
I’ve never really been a desktop gadgets and widgets type of person, but I often put an inspirational quote on my desktop wallpaper. Today we’ll show you how to do this using Rainmeter, no matter what wallpaper you switch to.
我从来没有真正成为过桌面小工具和小部件类型的人,但是我经常在我的桌面墙纸上加上励志名言。 今天,我们将向您展示如何使用Rainmeter进行此操作,无论您要切换到什么墙纸。
The great thing about using Rainmeter is that you can switch your wallpaper, or rotate it, and the quote stays in the same place. What we’ll do is show how to create a very simple skin and customize it to fit our needs.
使用Rainmeter的妙处在于,您可以切换壁纸或旋转壁纸,并且报价保持在同一位置。 我们将做的是展示如何创建一个非常简单的外观并对其进行自定义以满足我们的需求。
创建一个简单的静态报价雨量计皮肤 (Creating a Simple Static Quote Rainmeter Skin)
Rainmeter might seem to be confusing for many of you, but it’s actually a lot simpler to use than you think. You’ll want to start by heading into your Documents folder, where you’ll find the Rainmeter –> Skins folder.
Rainmeter可能会让您感到困惑,但实际上使用起来比您想象的要简单得多。 首先,请转到“文档”文件夹,在其中找到“雨表–>皮肤”文件夹。
Once you’re there, create a new folder to house all of your own custom skins.
到那里后,创建一个新文件夹来容纳您自己的所有自定义皮肤。
![image image](https://i-blog.csdnimg.cn/blog_migrate/2f3a41afb573528f3d3ac2acf17bca58.png)
Then create a new folder for the new quote config—I called mine StaticQuote—and then add a .INI file with the same name to the folder. In this case, that meant creating a new text file and renaming it to StaticQuote.ini, which you can actually do directly from Notepad in the next step.
然后为新的报价配置创建一个新文件夹(我称为mine StaticQuote),然后将具有相同名称的.INI文件添加到该文件夹。 在这种情况下,这意味着创建一个新的文本文件并将其重命名为StaticQuote.ini,您实际上可以直接在下一步中从记事本中执行此操作。
![image image](https://i-blog.csdnimg.cn/blog_migrate/f37f330e6495d2b23af96381db6a2212.png)
Open up Notepad and paste in the following text, which is all you need for this very basic configuration. You can feel free to edit the quote I’ve included, which is something I found in this @codinghorror post.
打开记事本并粘贴以下文本,这是此非常基本的配置所需的全部。 您可以随时编辑我包含的报价,这是我在@codinghorror帖子中发现的。
[Rainmeter]Author=howtogeek
[Rainmeter]作者= howtogeek
[QuoteStyle]FontColor=FFFFFFFFFontSize=16AntiAlias=1
[QuoteStyle] FontColor = FFFFFFFFFontSize = 16AntiAlias = 1
[Quote]Meter=STRINGMeterStyle=QuoteStyleText=”Go that way, Really fast. If something gets in your way… turn.”
[Quote] Meter = STRINGMeterStyle = QuoteStyleText =”走那条路,真的很快。 如果有什么阻碍您的事情,那就转。”
Now head to File –> Save As, change the “Save as type” to All Files instead of the default, and then give it the filename ending in .ini as shown here:
现在转到“文件”->“另存为”,将“另存为类型”更改为“所有文件”,而不是默认值,然后为其指定以.ini结尾的文件名,如下所示:
![image image](https://i-blog.csdnimg.cn/blog_migrate/f3b2ef9c91fcbec09738d6c667e21335.png)
It’s really important to make sure the file has the .ini extension.
确保文件具有.ini扩展名非常重要。
激活新配置 (Activating the New Config)
The easiest way to deal with loading new configurations and reloading them quickly is to open up the RainBrowser application included in Rainmeter—then click the Browse tab on the left-hand pane. You should see your skins folder, with your configuration underneath it.
处理加载新配置并快速重新加载它们的最简单方法是打开Rainmeter中包含的RainBrowser应用程序,然后单击左侧窗格上的“浏览”选项卡。 您应该看到外观文件夹,并在其下面进行配置。
![image image](https://i-blog.csdnimg.cn/blog_migrate/3bc8e22ab3c8e79afe7e6fe258985a25.png)
Down near the bottom of the window, you’ll see your skin, and you can simply click the Load Skin link and it will show up on the screen.
在窗口底部附近,您将看到您的皮肤,只需单击“加载皮肤”链接,该链接就会显示在屏幕上。
![image image](https://i-blog.csdnimg.cn/blog_migrate/678fef5622405f4792ef8324b7165487.png)
You should leave the RainBrowser window open, since we’ll be making more changes to the skin—you can just use the Refresh Skin link to quickly reload the skin every time you change the configuration file.
您应该保持RainBrowser窗口处于打开状态,因为我们将对外观进行更多更改-您可以使用“刷新外观”链接在每次更改配置文件时快速重新加载外观。
更改字体和颜色 (Changing the Font and Color)
![image image](https://i-blog.csdnimg.cn/blog_migrate/29d522dcf747fbbfbfd18dc0a01d93fe.png)
The new theme should look something like this with the default settings that we gave you, but you can easily customize and change the configuration to your liking. Let’s take a closer look at the style section of our configuration to understand how the different options work.
新主题应使用我们为您提供的默认设置,看起来像这样,但是您可以根据自己的喜好轻松自定义和更改配置。 让我们仔细看看配置的样式部分,以了解不同选项的工作方式。
Changing the Color
改变颜色
The FontColor=FFFFFFFF line is what sets the color for the text, as you’d expect—but you’ll notice that instead of the standard HTML-style color code, it’s got 2 extra characters. This is because it’s actually RGB(A) with the (A) being the alpha channel—so the last two characters go from 00, or fully transparent, to FF, or zero transparency. You’d ideally pick somewhere in the middle.
正如您所期望的那样,FontColor = FFFFFFFF行是为文本设置颜色的方法-但是您会注意到,它具有2个额外的字符,而不是标准HTML样式颜色代码。 这是因为它实际上是RGB(A),其中(A)是Alpha通道-因此,后两个字符从00(或完全透明)到FF(或零透明度)。 理想情况下,您应该选择中间的某个地方。
For instance, to change the color to black, you’d change the line to the following—though you’ll note that the default color is black, so that would be pointless.
例如,要将颜色更改为黑色,可以将行更改为以下内容-尽管您会注意到默认颜色是黑色,所以这毫无意义。
FontColor=000000FF
FontColor = 000000FF
Changing the Font Face
更改字体
If you don’t like the default font, you can use the FontFace variable, with the name of an installed font in Windows. For instance, to change the font to Calibri, you could use this:
如果您不喜欢默认字体,则可以使用FontFace变量以及Windows中已安装字体的名称。 例如,要将字体更改为Calibri,可以使用以下命令:
FontFace=Calibri
FontFace = Calibri
Change the Font Style
更改字体样式
If you want to use bold, italic, or even bold italics, you can use the StringStyle variable, which takes one of the following values: NORMAL, BOLD, ITALIC and BOLDITALIC. To change the font to bold, you’d do:
如果要使用粗体,斜体甚至粗体斜体,则可以使用StringStyle变量,该变量采用以下值之一:NORMAL,BOLD,ITALIC和BOLDITALIC。 要将字体更改为粗体,请执行以下操作:
StringStyle=BOLD
StringStyle = BOLD
And of course, you’ll be able to change the font size by adjusting the FontSize variable, as you’d imagine.
当然,您可以想象到通过调整FontSize变量来更改字体大小。
在文本中添加阴影 (Adding a Drop Shadow to the Text)
The only problem with the white text against the lighter colored background is that it isn’t quite as noticeable as you’d like—and if you used dark text instead, you couldn’t switch to a darker wallpaper without causing visibility problems.
白色文本与浅色背景之间的唯一问题是,它并没有您想要的那么引人注目-如果使用深色文本,则不能切换到较暗的墙纸而不会引起可见性问题。
The solution is to use the StringEffect variable to set a shadow or a border on the text, making it much more visible against any background. For instance, to set a drop shadow on the text, you’d use the following—to set a border instead, you’d replace SHADOW with BORDER.
解决方案是使用StringEffect变量在文本上设置阴影或边框,以使其在任何背景下都更加可见。 例如,要在文本上设置阴影,可以使用以下方法-设置边框,而应将SHADOW替换为BORDER。
StringEffect=SHADOW
StringEffect =阴影
Here’s an example of what it looks like normally, then with a drop shadow, and then with a border instead:
这是正常情况下的示例,然后是阴影,然后是边框:
![image image](https://i-blog.csdnimg.cn/blog_migrate/71c50827957bc0af4ab1ab7c0a7b6470.png)
![image image](https://i-blog.csdnimg.cn/blog_migrate/84e556711fa53a99fcf44e464a84581f.png)
![image image](https://i-blog.csdnimg.cn/blog_migrate/8f115f58e12b04ba775adf6620df5e38.png)
If you wanted to use a darker text, you can use a light border or drop shadow by using the FontEffectColor variable. For instance, for a black text with a white border, you’d use:
如果要使用较暗的文本,可以通过使用FontEffectColor变量来使用浅边框或阴影。 例如,对于带有白色边框的黑色文本,您可以使用:
FontEffectColor=FFFFFFFFFontColor=000000FF StringEffect=BORDER
FontEffectColor = FFFFFFFFFontColor = 000000FF StringEffect = BORDER
There’s a lot more configuration settings that you can choose from, all of which can be found in the Rainmeter manual.
您可以选择更多配置设置,所有这些设置都可以在Rainmeter手册中找到。
Congrats, you’ve created your first Rainmeter skin! Stay tuned, we’ll be covering how to do even more powerful skins in the future.
恭喜,您已经创建了您的第一个Rainmeter皮肤! 请继续关注,我们将在将来介绍如何做更强大的皮肤。
This is the fourth part in our series explaining how to use Rainmeter. If you haven’t already, make sure to read the previous three parts in the series:
这是本系列的第四部分,介绍了如何使用Rainmeter。 如果还没有,请确保阅读本系列的前三部分:
Beginner’s Guide to Rainmeter: Display System Stats on Your Desktop
How to Make a Rainmeter Skin Stick to the Desktop Without Moving
How to Keep a Rainmeter Skin from Hiding When You “Show Desktop”
Got any specific Rainmeter questions you’d like answered? Leave your question in the comments and we’ll see if we can help.
有您要回答的任何特定的Rainmeter问题吗? 将您的问题留在评论中,我们将为您提供帮助。
翻译自: https://www.howtogeek.com/howto/35980/how-to-display-a-quote-on-your-desktop-using-rainmeter/
rainmeter使用教程