Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
wavelength_utilities.h
Go to the documentation of this file.
1#ifndef WAVELENGTH_UTILITIES_H
2#define WAVELENGTH_UTILITIES_H
3
4class QColor;
5class QLabel;
6class BlobAnimation;
7
15public:
23 static double NormalizeFrequency(double frequency);
24
32 static void CenterLabel(QLabel *label, const BlobAnimation *animation);
33
41 static void UpdateTitleLabelStyle(QLabel *label, const QColor &text_color, const QColor &border_color);
42};
43
44#endif // WAVELENGTH_UTILITIES_H
Main widget responsible for rendering and animating the dynamic blob.
Definition blob_animation.h:30
A collection of static utility functions used throughout the Wavelength application.
Definition wavelength_utilities.h:14
static void UpdateTitleLabelStyle(QLabel *label, const QColor &text_color, const QColor &border_color)
Applies a specific cyberpunk-themed stylesheet to a QLabel, intended for title elements....
Definition wavelength_utilities.cpp:34
static double NormalizeFrequency(double frequency)
Normalizes a frequency value by formatting it to one decimal place. Converts the double to a string w...
Definition wavelength_utilities.cpp:9
static void CenterLabel(QLabel *label, const BlobAnimation *animation)
Centers a QLabel widget within the bounds of a BlobAnimation widget. Calculates the appropriate geome...
Definition wavelength_utilities.cpp:22