Fossil SCM

Color picker (edit check-in properties)

Open

8e291053ef80e56… · opened 15 years, 6 months ago

Type
Feature_Request
Priority
Severity
Cosmetic
Resolution
Open
Subsystem
Created
Sept. 23, 2010 8:41 a.m.

Is it doable to include code from http://jscolor.com/ in the check-in properties page?

I think there might be a license issue… please tell me


BMorgat added on 2010-09-23 08:46:58: In particular, example at [http://jscolor.com/try.php#setting-color] seems interesting


wolfgang added on 2010-09-25 11:16:58 / edited on 15:20 i think, it should be possible by adding some scripting to the footer. there is an example for syntax highlighting in editor fields in the documentation.

The new button could be added by a pre/post entry in the css for the editor box. Eventually we have to add a new id to the color input. I´ll take a look at the sources.

Using css/javascript in the footer enables us to have a small binary and prevent any licence problems, because adding code is an user decission inside fossil configuration.


Ratte added on 2010-09-26 11:38:55: with my commit [5b2c837336] on my branch, i've added a version, with an user defined color edit on the checkin edit page.

With this change, you can add jscolor's script to the header and let the script generate the color picker. The classname/id of the input are documented in the default css view on admin/edit-css. For example, you can add the following to your footer:





  if { "$current_page" eq "ci_edit" } {
    html ""
    html ""
  }

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button