Collection of themes/skins for the Fossil SCM

⌈⌋ ⎇ branch:  Fossil Skins Extra


Check-in [d17961d962]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Changed *.py color
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d17961d962c60c930d77e9a612ca8b5fae4ab0f0
User & Date: mario 2020-11-13 21:06:08
Context
2020-11-13
21:06
Reapply /wiki/$name for github box check-in: b782e815fe user: mario tags: trunk
21:06
Changed *.py color check-in: d17961d962 user: mario tags: trunk
20:58
Apply $baseurl to projectname title link check-in: c3f771e697 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to features/fossil-stats-table.php.

327
328
329
330
331
332
333


334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
// gets default color scheme for language (this should actually go in a stylesheet, but these are the expected defaults)
function lang_color($name)
{
    // excerpt from https://github.com/doda/github-language-colors
   $col = array(
      'comments' => "777; background:linear-gradient(165deg,#999,#bbb,#fc5,#ddd,#aaa);", // special lang(comments) property of fx_stats 
      'bin' => "7c8; background:linear-gradient(177deg,#5b6,#6c7,#c87,#68e,#57d);", // binaries, if enabled


      '' => "f15501", // bin
      "java" => "b07219",  "scala" => "7dd3b0",  "pas" => "b0ce4e",  "pl" => "0298c3",
      "lua" => "fa1fa1",   "r" => "198ce7",      "nu" => "c9df40",   "clj" => "db5855",
      "sh" => "5861ce",    "asm" => "a67219",    "pir" => "f3ca0a",  "lisp" => "3fb68b",
      "dart" => "cccccc",  "cs" => "244776",     "hs" => "29b544",   "ruby" => "701516",
      "c" => "555",        "js" => "f15501",     "d" => "fcd46d",    "cpp" => "f34b7d",
      "objc" => "f15501",  "rust" => "dea584",   "py" => "3581ba",   "tcl" => "e4cc98",
      "go" => "8d04eb",    "bas" => "945db7",    "php" => "6e03c1",  "ss" => "1e4aec",
      "vala" => "3581ba",  "c#" => "bb92af",
   );

   // if no predefined name, fall back on crc32() of language name
   return isset($col[$name])
        ? $col[$name]
        : substr(str_pad(dechex(crc32($name)), 6, "0", STR_PAD_LEFT), 0, 6);
}







>
>






|

|







327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
// gets default color scheme for language (this should actually go in a stylesheet, but these are the expected defaults)
function lang_color($name)
{
    // excerpt from https://github.com/doda/github-language-colors
   $col = array(
      'comments' => "777; background:linear-gradient(165deg,#999,#bbb,#fc5,#ddd,#aaa);", // special lang(comments) property of fx_stats 
      'bin' => "7c8; background:linear-gradient(177deg,#5b6,#6c7,#c87,#68e,#57d);", // binaries, if enabled
      #'py' => "326b9a; background:repeating-linear-gradient(145deg,#3581ba,#3581ba,#ffe05e,#ae8d00 25%);", // blue/yellow
      'text' => "c0c8cf",
      '' => "f15501", // bin
      "java" => "b07219",  "scala" => "7dd3b0",  "pas" => "b0ce4e",  "pl" => "0298c3",
      "lua" => "fa1fa1",   "r" => "198ce7",      "nu" => "c9df40",   "clj" => "db5855",
      "sh" => "5861ce",    "asm" => "a67219",    "pir" => "f3ca0a",  "lisp" => "3fb68b",
      "dart" => "cccccc",  "cs" => "244776",     "hs" => "29b544",   "ruby" => "701516",
      "c" => "555",        "js" => "f15501",     "d" => "fcd46d",    "cpp" => "f34b7d",
      "objc" => "f15501",  "rust" => "dea584",   "tcl" => "e4cc98",
      "go" => "8d04eb",    "bas" => "945db7",    "php" => "6e03c1",  "ss" => "1e4aec",
      "vala" => "3581ba",  "c#" => "bb92af",     "py" => "3581ba",
   );

   // if no predefined name, fall back on crc32() of language name
   return isset($col[$name])
        ? $col[$name]
        : substr(str_pad(dechex(crc32($name)), 6, "0", STR_PAD_LEFT), 0, 6);
}