It is currently October 1st, 2020, 5:02 am

Hijri Date Gadget

Help with creating, editing & fixing problems with skins
astromaz
Posts: 3
Joined: October 3rd, 2016, 5:24 am

Hijri Date Gadget

Post by astromaz »

Assalam Alaikum, I am solely using Rainmeter so that I can know what is today's Hijri date. Is there any gadget for this? Please help.
User avatar
Brian
Developer
Posts: 2063
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Hijri Date Gadget

Post by Brian »

Use the Time measure's FormatLocale option.

Here is an example:

Code: Select all

[HijriDate]
Measure=Time
Format=%#c
FormatLocale=ar
You may need change the Format option to suit your needs.
If you want to use a different locale, you can find a link to the official Microsoft list in this option: https://docs.rainmeter.net/manual-beta/measures/time/#TimeStampLocale

(Of course you will also need a Meter to display the date.)

-Brian
astromaz
Posts: 3
Joined: October 3rd, 2016, 5:24 am

Re: Hijri Date Gadget

Post by astromaz »

Brian wrote:Use the Time measure's FormatLocale option.

Here is an example:

Code: Select all

[HijriDate]
Measure=Time
Format=%#c
FormatLocale=ar
You may need change the Format option to suit your needs.
If you want to use a different locale, you can find a link to the official Microsoft list in this option: https://docs.rainmeter.net/manual-beta/measures/time/#TimeStampLocale

(Of course you will also need a Meter to display the date.)

-Brian
Can you please guide me step by step what to do to implement this? I am new to Rainmeter.
User avatar
Active Colors
Moderator
Posts: 613
Joined: February 16th, 2012, 3:32 am

Re: Hijri Date Gadget

Post by Active Colors »

astromaz wrote:Can you please guide me step by step what to do to implement this? I am new to Rainmeter.
Please read first Hot to create first skins and Anatomy of a skin.
astromaz
Posts: 3
Joined: October 3rd, 2016, 5:24 am

Re: Hijri Date Gadget

Post by astromaz »

Active Colors wrote:Please read first Hot to create first skins and Anatomy of a skin.
I read it but can't implement it, can you please give me final .ini file?
User avatar
Brian
Developer
Posts: 2063
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Hijri Date Gadget

Post by Brian »

Nobody here is really in the business of making skins for people (see here).

However, I can give you a simple 'complete' example.

Here is the code:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

[MeasureHijriDate]
Measure=Time
Format=%#c
FormatLocale=ar

[MeterDate]
Meter=String
MeasureName=MeasureHijriDate
SolidColor=0,0,0,255
FontColor=255,255,255
Obviously this doesn't look too great (just white text on a black background) so if you want it to look different, you will have to make some modifications to make it look the way you want it to.

Here are some guides and tips:
https://docs.rainmeter.net/manual-beta/getting-started/
https://docs.rainmeter.net/tips/
https://forum.rainmeter.net/viewforum.php?f=15

-Brian
SaaL
Posts: 1
Joined: June 27th, 2020, 3:45 am

Re: Hijri Date Gadget

Post by SaaL »

Brian wrote: October 3rd, 2016, 10:19 pm Nobody here is really in the business of making skins for people (see here).

However, I can give you a simple 'complete' example.

Here is the code:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

[MeasureHijriDate]
Measure=Time
Format=%#c
FormatLocale=ar

[MeterDate]
Meter=String
MeasureName=MeasureHijriDate
SolidColor=0,0,0,255
FontColor=255,255,255
Obviously this doesn't look too great (just white text on a black background) so if you want it to look different, you will have to make some modifications to make it look the way you want it to.

Here are some guides and tips:
https://docs.rainmeter.net/manual-beta/getting-started/
https://docs.rainmeter.net/tips/
https://forum.rainmeter.net/viewforum.php?f=15

-Brian
i made an account just to thank you >> really it was helpful