Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Code Color changes

Status
Not open for further replies.

eivl

Local Hero
Xy$
0.00
Making this post to see how the different colours work on the site.
Javascript have issues with dark purple and blue when using the dark theme.

Javascript
JavaScript:
function() {
if(Utils.isNwjs()) {
var _pluginName = 'CXJ_Exit';
var _propNames = ['Text - Exit', 'Text - To Desktop', 'Add to title', 'Add to Game End'];
var _defaultParams = {
'Text - Exit' : 'Exit',
'Text - To Desktop' : 'To Desktop',
'Add to title' : 'true',
'Add to Game End' : 'true'
};

var _getParameters = function(pluginName, propNames, defaultParams) {

/* Private function that checks plugin content */
var _checkPluginContent = function(parameters) {
for(var prop in parameters) {
if(parameters.hasOwnProperty(prop)) {
return true;
}
}
return false;
}

var parameters = PluginManager.parameters(pluginName);

if(_checkPluginContent(parameters)) {
return parameters;
}
var currentScript = document.currentScript;
if(currentScript) {
var scriptName = document.currentScript.src;
scriptName = scriptName.substr(scriptName.indexOf('js/plugins/') + 11);
scriptName = scriptName.substr(0, scriptName.lastIndexOf('.js'));
parameters = PluginManager.parameters(scriptName);
}

if(_checkPluginContent(parameters)) {
return parameters;
}

for(var idx = 0; idx < $plugins.length; idx++) {
var plugin = $plugins[idx];
var params = plugin.parameters;
if(plugin.description.indexOf('<' + pluginName + '>') > -1) {
return params;
}
var hasFound = true;
for(var idx = 0; idx < _propNames.length; idx++) {
if(!params.hasOwnProperty(propNames[idx])) {
hasFound = false;
break;
}
}
if(hasFound) {
return params;
}
}
return _defaultParams;
}

var parameters = _getParameters(_pluginName, _propNames, _defaultParams);

function myFunction()
var message, x;
  message = document.getElementById("message");
  message.innerHTML = "";
 x = document.getElementById("demo").value;
try { 
if(x == "") throw"Empty";
if(isNaN(x)) throw"Not a number";
if(x > 10) throw"Too high";
if(x < 5) throw"Too low";
  }
catch(err) {
  message.innerHTML = "Error: " + err + ".";
  }
finally {
   document.getElementById("demo").value = "";
  }
}
CSS
CSS:
[B]body {
  font-family:Verdana,sans-serif;font-size:0.8em;
}
header,footer,section,article {
  border:1px solid grey;
  margin:5px;margin-bottom:15px;padding:8px;
  background-color:white;
}
header,footer {
  color:white;background-color:#444;margin-bottom:5px;
}
section {
  background-color:#ddd;
}
nav ul {
  margin:0;padding:0;
}
nav ul li {
  display:inline; margin:5px;
}[/B]
HTML
HTML:
<!DOCTYPEhtml>
<htmllang="en">
<title>HTML5</title>
<metacharset="utf-8">

<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js">
</script>
<![endif]-->

<style>
body {
  font-family:Verdana,sans-serif;font-size:0.8em;
}
header,footer,section,article {
  border:1px solid grey;
  margin:5px;margin-bottom:15px;padding:8px;
  background-color:white;
}
header,footer {
  color:white;background-color:#444;margin-bottom:5px;
}
section {
  background-color:#ddd;
}
nav ul {
  margin:0;padding:0;
}
nav ul li {
  display:inline; margin:5px;
}
</style>
<body>

<header>
<h1>Monday Times</h1>
</header>

<nav>
<ul>
<li>News</li>
<li>Sports</li>
<li>Weather</li>
</ul>
</nav>

<section>
<h2>News Section</h2>

<article>
<h2>News Article</h2>
<p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum turum ipsum 
  lurum hurum turum.</p>
<p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum turum ipsum 
  lurum hurum turum.</p>
<p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum turum ipsum 
  lurum hurum turum.</p>
</article>

<article>
<h2>News Article</h2>
<p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum turum ipsum 
  lurum hurum turum.</p>
<p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum turum ipsum 
  lurum hurum turum.</p>
<p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum turum ipsum 
  lurum hurum turum.</p>
</article>

</section>

<footer>
<p>&amp;copy; 2014 Monday Times. All rights reserved.</p>
</footer>

</body>
</html>
PHP

PHP:
<?php

    include('../lib/full/qrlib.php');
    include('config.php');

    // debuging vector subshapes
    // visible object categories:
    // pixels (black), rectangles (gray), LShapes (blue), markers(green)
    // and complicated paths (outlined color)
    
    $codeContents   = 'Let see what the code structure looks like with a little bit bigger code';
    $eccLevel       = QR_ECLEVEL_H;
    $pixelPerPoint  = 12;
    $marginSize     = 2;
    $tempDir        = EXAMPLE_TMP_SERVERPATH;
    $fileName       = '723_path_debug.png';
    
    // because PHP does not have macros or closures
    function mapCoord($pos) {
        return ($pos+2)*12;
    }
    
    // from: http://stackoverflow.com/questions/3597417/php-hsv-to-rgb-formula-comprehension by: Artefacto
    function HSVtoRGB(array $hsv) {
        list($H,$S,$V) = $hsv;
        $H *= 6;
        $I = floor($H);
        $F = $H - $I;
        $M = $V * (1 - $S);
        $N = $V * (1 - $S * $F);
        $K = $V * (1 - $S * (1 - $F));
        switch ($I) {
            case 0:
                list($R,$G,$B) = array($V,$K,$M);
                break;
            case 1:
                list($R,$G,$B) = array($N,$V,$M);
                break;
            case 2:
                list($R,$G,$B) = array($M,$V,$K);
                break;
            case 3:
                list($R,$G,$B) = array($M,$N,$V);
                break;
            case 4:
                list($R,$G,$B) = array($K,$M,$V);
                break;
            case 5:
            case 6: //for when $H=1 is given
                list($R,$G,$B) = array($V,$M,$N);
                break;
        }
        return array($R, $G, $B);
    }
 

Xyphien

Owner
Staff member
Administrator
Resource Team
Xy$
9.57
ooh snap, this should be an easy fix in the css. What colors would you recommend changing too, because all the blues are hidious, dark colors, etc. If you could help come up with some colors for each one, that'd help speed this change prosess along faster :D
 

eivl

Local Hero
Xy$
0.00
Sure, i will do some testing..

JavaScript:
import {x, y} as p from 'point';
const ANSWER = 42;

class Car extends Vehicle {
  constructor(speed, cost) {
    super(speed);

    var c = Symbol('cost');
    this[c] = cost;

    this.intro = `This is a car runs at
      ${speed}.`;
  }
}

for (let num of [1, 2, 3]) {
  console.log(num + 0b111110111);
}

function $initHighlight(block, flags) {
  try {
    if (block.className.search(/\bno\-highlight\b/) != -1)
      return processBlock(block.function, true, 0x0F) + ' class=""';
  } catch (e) {
    /* handle exception */
    var e4x =
        <div>Example
            <p>1234</p></div>;
  }
  for (var i = 0 / 2; i < classes.length; i++) { // "0 / 2" should not be parsed as regexp
    if (checkCondition(classes[i]) === undefined)
      return /\d+[\s/]/g;
  }
  console.log(Array.every(classes, Boolean));
}

export  $initHighlight;
[doublepost=1446023669,1446023286][/doublepost]So here is my suggestions.

there might be more later, and this is only for the dark theme, the light version is as i can tell pretty good, but it is white...

CSS:
//Dark blue, loops, functions .. etc..

color: #000066; // Dark Blue , change to orange
color: #cb7832; //Dark orange


// Purple, methods, and other maybe

color: #660066 //Purple, change to yellowish
color: #e0c46c // Dirty yellow

//Mat blue , boolian checks and logic (i think), change to readable blue
color: #003366 // Mat blue
color: #6896ba //readable blue

To clearify.
3 changes,

  • dark blue to dark orange
  • Purple to yellow
  • Mat blue to a more readable blue.
[doublepost=1446119041][/doublepost]Bump @Xyphien
 

Xyphien

Owner
Staff member
Administrator
Resource Team
Xy$
9.57
Been busy, I thought I got the day off early, but turns out I didn't because they like to play games 24/7. I've added this to the to-do list, so it will get done :) I'm trying my best to get everything done as fast as possible.
 

eivl

Local Hero
Xy$
0.00
nice! =) dont need to get it done fast, just as long as it is on your to-do list that is fine! ;) would be awful if it where forgotten.
 

Xyphien

Owner
Staff member
Administrator
Resource Team
Xy$
9.57
nice! =) dont need to get it done fast, just as long as it is on your to-do list that is fine! ;) would be awful if it where forgotten.
Nope :) I had it opened, though thanks for tagging me because I do forget things easily :O

http://www.rpgmakermv.co/threads/my-to-do-list.290/ Here is the to-do list if you're ever wondering if I'm tracking on a suggestion/changes I'll be adding to the site :)
 
Status
Not open for further replies.
Top