mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibGfx+icc: Make device manufacturer and device model clickable
This commit is contained in:
parent
243caa8fa9
commit
b56a145a67
3 changed files with 29 additions and 2 deletions
|
@ -388,6 +388,18 @@ ErrorOr<void> parse_reserved(ICCHeader const& header)
|
|||
}
|
||||
}
|
||||
|
||||
URL device_manufacturer_url(DeviceManufacturer device_manufacturer)
|
||||
{
|
||||
return URL(DeprecatedString::formatted("https://www.color.org/signatureRegistry/?entityEntry={:c}{:c}{:c}{:c}-{:08X}",
|
||||
device_manufacturer.c0(), device_manufacturer.c1(), device_manufacturer.c2(), device_manufacturer.c3(), device_manufacturer.value));
|
||||
}
|
||||
|
||||
URL device_model_url(DeviceModel device_model)
|
||||
{
|
||||
return URL(DeprecatedString::formatted("https://www.color.org/signatureRegistry/deviceRegistry/?entityEntry={:c}{:c}{:c}{:c}-{:08X}",
|
||||
device_model.c0(), device_model.c1(), device_model.c2(), device_model.c3(), device_model.value));
|
||||
}
|
||||
|
||||
StringView device_class_name(DeviceClass device_class)
|
||||
{
|
||||
switch (device_class) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue