Greasy Fork is available in English.

Custom Spectrum Palette

Modifies Spectrum color pickers to offer the user’s selection of preset colors and accept input.

ของเมื่อวันที่ 09-12-2021 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ผู้เขียน
Salvatos
คะแนน
0 0 0
เวอร์ชัน
1
สร้างเมื่อ
09-12-2021
อัปเดตเมื่อ
09-12-2021
Size
3.35 กิโลไบต์
สัญญาอนุญาต
ไม่มี
ปรับใช้กับ

This Kanka script modifies Spectrum color pickers to offer the user’s selection of preset colors instead of the handful of defaults, and makes it possible to enter values directly in the field under the color picker. This applies to forms such as Events, Relations and Map Markers. Let me know if you find another that would need this.

The script as released will show the same colors as standard, but split into two rows to demonstrate the syntax. To customize your palette, you will need to add your color values in any valid format to the palette setting in the spectrumSettings function, as identified in the script.

  • Each line enclosed in square brackets corresponds to a row of options in the color picker. There is no technical limit to the number of colors per row (that I know of).
  • Each line should end with a comma, except the last row.
  • Values are enclosed in quotation marks and separated by commas.

Valid formats are listed in Spectrum’s documentation: https://bgrins.github.io/spectrum/#details-acceptedColorInputs