HOME | DD

not-Finch — Push notification for rainmeter by-nc

#rainmeter #rainmeterskin #rainmetercustomization
Published: 2018-10-21 11:05:36 +0000 UTC; Views: 7760; Favourites: 7; Downloads: 413
Redirect to original
Description   Push Notification 1.0

This skin does not generate notification, you can send notification from other skin by using bang.
you need to use 2 bang, one for formatting the notification and one to send the notification.

Show up to 5 notification, smooth animation for both appear and dismiss. To reduce performance impact, most animation and interact are written in lua and only update when needed.

Formatting
You can format multiple time, changing elements like title, message, color,... using parameters
You don't have to pass in all the parameters, default value will be filled automatically.
You can continuously change notification element as many time as you want before sending the notification.
Example:
[!CommandMeasure "Notification" "format({title='Example', message='example notification', color='153,51,255'})" "PushNotification"]

Send
just execute this:
[!CommandMeasure "Notification" "push()" "PushNotification"]
All format value will be restored to default once its sent.
When there are already 5 notification present, the last one will be dismissed.

list of parameters:
color = color of the notification tab
title = title of the notification
message = message of the notification
icon = icon image file
fontcolor: font color (duh)
timer = time before notification is automatically dismissed (set to -1 for never)
fontsize = message text size
inline = how far to the right should the text be (default is 100 to avoid overlap with icon)
option = number of interact button (can be up to 3)
action# = bang to execute when press on interact button (action3=[!Bang])
text# = text to show on interact button (text3='string')
height = SKIN:GetVariable('Height')
tint = color tint of the icon
cancellable = whether you can click anywhere on the notification to dismiss it, default is 1.

when enter special character, put backlash before said character, for example:
[!CommandMeasure "Notification" "format({icon='\#SKINSPATH \#PushNotification \\resources \\Icon\\Help.png'})" "PushNotification"]
Related content
Comments: 1

AfriCuz [2020-11-24 03:16:01 +0000 UTC]

👍: 0 ⏩: 0