Widgets
What are the widgets?

Widgets are information containers that give you quick insights about different information, including the world clock and the news, in a full-screen format. These widgets can be found in the modern logon screen and in The Nitrocid Homepage, and you can easily switch between the main screen and the widget pages.
Widgets are not supported in the classic lock screen style and in the custom lock screen styles.
The following widgets are available:
AnalogClock: Shows you the analog clockDigitalClock: Shows you the digital clockEmoji: Shows you an emoji iconNotificationIcons: Shows you a group of notifications grouped as iconsNotificationList: Shows you a group of notifications as cardsPhoto: Shows you a photo rendered to the consoleTextWidget: Shows you text
Setting widgets
The WidgetTools class provides a plethora of functions that allow you to manipulate with the widgets, such as registering them and unregistering them. You can also get a widget instance and its name.
Widget Canvas
Widget Canvas API supports both the modern logon screen and the homepage so they extend to pages of widgets. In order to learn more about how widget canvas work, please refer to the below page:
Widget CanvasConfiguring widgets
You can configure the widgets using the settings application by executing the settings command, passing it the -widgets switch. Select a widget using the up/down arrow keys, then use the tab key to change the focus to the widget settings entry list. You can use the enter key afterwards to customize the widgets.
Building widgets
In order to be able to build your widget, you must make a kernel mod that will register your widget when it starts (AddWidget()) and will unregister it when your mod stops (RemoveWidget()). Follow the instructions on how to build your mod here and use it as a starting point to be able to build such a mod.
Afterwards, make a new class file somewhere on your mod source that will hold all your widget code, such as MyWidget, and make it implement both the BaseWidget class and the IWidget interface so that Nitrocid recognizes it as a widget. A minimal example for this class can be consulted below:
Last updated