So true...
It is currently October 14th, 2024, 8:30 pm
My First Skin Help
-
- Rainmeter Sage
- Posts: 8463
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
-
- Rainmeter Sage
- Posts: 8463
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: My First Skin Help
Since we talk about credits and all, especially for weather skins, I believe the first one to deserve credits is jsmorley, for his huge amount of work in making those .INC files to parse weather.com data (and this comes from someone not using those .INC-s to get the said data). That goes for eclectic-tech as well, for his Yahoo data similar work.
Of course. What I meant by "challenge" is more or less "argue with him over it in a civilized manner" - no negative implications. I'm one who believes that from that kind of discussions and exchange of (sometimes contradictory) ideas, good things (or progress, if you like) can arise.
Last edited by Yincognito on July 19th, 2021, 11:11 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 8463
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: My First Skin Help
Indeed.dvo wrote: ↑July 19th, 2021, 11:10 pm yess for weather skin jsMorley and a few others did the weather i can't recall all but a few did that job splendedly they revived the whole wheater section. and all other guys they gave the things they could add i love that every body is trying to pitch inn. i always say there are many ways to get to rome but how you did it it's your trip...
-
- Rainmeter Sage
- Posts: 8463
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
-
- Posts: 300
- Joined: June 12th, 2016, 2:40 am
Re: My First Skin Help
In the attached image there is the Change Color option. This brings up a palette for choosing a color. I would like to add a 'Change Font' option for choosing a font. Possible to do? -thxeclectic-tech wrote: ↑July 19th, 2021, 9:07 pm... Let us know if you have any questions or other ideas.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 300
- Joined: June 12th, 2016, 2:40 am
Re: My First Skin Help
^
found this : https://forum.rainmeter.net/viewtopic.php?f=4&t=20041&p=107086&hilit=ContextFont#p107086
is studying this skin (ContextFont) a way to go or another?
found this : https://forum.rainmeter.net/viewtopic.php?f=4&t=20041&p=107086&hilit=ContextFont#p107086
is studying this skin (ContextFont) a way to go or another?
-
- Rainmeter Sage
- Posts: 8463
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: My First Skin Help
More or less, yes, it's one of 2 ways you can go, as far as I'm aware of. The 2 ways are:MourningStar wrote: ↑July 19th, 2021, 11:50 pm ^
found this : https://forum.rainmeter.net/viewtopic.php?f=4&t=20041&p=107086&hilit=ContextFont#p107086
is studying this skin (ContextFont) a way to go or another?
- adding as many font (or even font index) variables as you want and then placing the font variable change in the context menu, somewhat similar (though slightly different in your case) to the link you posted
- placing an InputText in your skin so you can freely - but manually - input the name of the font you want to use
The 1st variant is easier to implement, but is limited to how many font variables you add in your skin (or how many can be placed in the context menu), and obviously each time you want to have different fonts from where to choose, you'll have to edit what you previously wrote. The 2nd variant is just slightly harder to do, but you can input any font you'd like to use, though it does require some space in the skin where you can place the said input box.
-
- Rainmeter Sage
- Posts: 5540
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: My First Skin Help
Do you plan on including several fonts in your package? This would be possible, and recommended, so you could have them selected from the context menu (that is what 'Context Font' does).MourningStar wrote: ↑July 19th, 2021, 11:50 pm ^
found this : https://forum.rainmeter.net/viewtopic.php?f=4&t=20041&p=107086&hilit=ContextFont#p107086
is studying this skin (ContextFont) a way to go or another?
If the end user wants a different font, they would have to manually edit the variables file and add the font to their system, or to the '@Resources\Fonts' folder in the skin.
EDIT: The board used to show new posts, but I always seem to miss seeing those ... sorry for the double info post
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 300
- Joined: June 12th, 2016, 2:40 am
Re: My First Skin Help
^
uh, ok - back to topic.
thx eclectic-tech & Yincognito, I will proceed. However, this won't end up removing the text size scroll function?
uh, ok - back to topic.
thx eclectic-tech & Yincognito, I will proceed. However, this won't end up removing the text size scroll function?
-
- Rainmeter Sage
- Posts: 8463
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: My First Skin Help
Nope. By the way, you don't have to proceed anymore for the 1st variant I mentioned...MourningStar wrote: ↑July 20th, 2021, 12:21 amHowever, this won't end up removing the text size scroll function?
...\BasicDualTemperature\@Resources\Variables.inc:
Code: Select all
[Variables]
Font1=Tahoma
Font2=Arial
Font3=Consolas
Font=Tahoma
FontColor=5,199,252
;===================
;Translate Langauge
;===================
Low Tonight=Low Tonight
Feels Like=Feels Like
Humidity=Humidity
Sunrise=Sunrise
Sunset=Sunset
Visibility=Visibility
Wind=Wind
UV Index=UV Index
Code: Select all
[Metadata]
Name=BasicDualTemperature
Author=MourningStar
Co-Authors=zivallh, Yincognito, balala, eclectic-tech & Rainmeter Tutorial
Information=basic dual (C & F) text-only display temperature skin
Version=1.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,1
RightMouseUpAction=[!SkinCustomMenu]
ContextTitle=Location: [@LocationName]
ContextAction=["https://weather.com/weather/today"]
ContextTitle2=Time: [@CurrentObservationTime] [@LocationTimezoneAbbreviation]
ContextAction2=[]
ContextTitle3=Edit Weather Variables
ContextAction3=["#@#WeatherComJSONVariables.inc"]
ContextTitle4="---"
ContextAction4=[]
ContextTitle5=Change Text Color
ContextAction5=["#@#Addons\RainRGB4.exe" "VarName=FontColor" "FileName=#@#Variables.inc"]
ContextTitle6="---"
ContextAction6=[]
ContextTitle7=Font: #Font1#
ContextAction7=[!WriteKeyValue Variables Font "#Font1#" "#@#Variables.inc"][!SetVariable Font "#Font1#"][!UpdateMeter *][!Redraw]
ContextTitle8=Font: #Font2#
ContextAction8=[!WriteKeyValue Variables Font "#Font2#" "#@#Variables.inc"][!SetVariable Font "#Font2#"][!UpdateMeter *][!Redraw]
ContextTitle9=Font: #Font3#
ContextAction9=[!WriteKeyValue Variables Font "#Font3#" "#@#Variables.inc"][!SetVariable Font "#Font3#"][!UpdateMeter *][!Redraw]
ContextTitle10="---"
ContextAction10=[]
ContextTitle11="More Actions >>"
ContextAction11=[!SkinMenu]
[Variables]
; Include weather settings and language variables
@Include1=#@#WeatherComJSONVariables.inc
@Include2=#@#WeatherComJSONMeasures.inc
@Include3=#@#Variables.inc
; Added 'Scale' variable used in the new mouse action bangs below
Scale=1.05
--------------------------------------------------------
[CurrentTemperatureF]
; Added to 'Times' group so it is enabled when the webparser finishes
Group=Times
Measure=Calc
Formula=(([@CurrentTemperature]*9/5)+32)
DynamicVariables=1
Disabled=1
[MeterTemperature]
MeasureName=@CurrentTemperature
MeasureName2=CurrentTemperatureF
;MeasureName2=@UnitsTemperature
Meter=String
X=(10*#Scale#)R
Y=(5*#Scale#)
FontFace=#Font#
FontSize=(55*#Scale#)
FontColor=#FontColor#
StringStyle=Normal
StringAlign=Left
StringEffect=Shadow
FontEffectColor=0,0,0,50
Antialias=1
DynamicVariables=1
Text=%1°C / %2°F
; Added to change the text size by scrolling the mouse wheel up or down
SolidColor=0,0,0,1
MouseScrollUpAction=[!SetVariable Scale (Clamp(#Scale#+0.05,0.1,3))][!WriteKeyValue Variables Scale (Clamp(#Scale#+0.1,0.1,3))][!UpdateMeter MeterTemperature][!Redraw]
MouseScrollDownAction=[!SetVariable Scale (Clamp(#Scale#-0.05,0.1,3))][!WriteKeyValue Variables Scale (Clamp(#Scale#+0.1,0.1,3))][!UpdateMeter MeterTemperature][!Redraw]
MiddleMouseUpAction=[!SetVariable Scale 1][!WriteKeyValue Variables Scale 1][!UpdateMeter MeterTemperature][!Redraw]
If you want more fonts, you'll have to manually add them in both files, i.e.
...\BasicDualTemperature\@Resources\Variables.inc:
Code: Select all
Font4=Times New Roman
Code: Select all
ContextTitle10=Font: #Font4#
ContextAction10=[!WriteKeyValue Variables Font "#Font4#" "#@#Variables.inc"][!SetVariable Font "#Font4#"][!UpdateMeter *][!Redraw]
P.S. If you think about using the 2nd variant, I'm sure the other guys here will be able to help. Me, I have to get up early tomorrow, so I'm done for today.