Browse Source

Helios:
- make the font in the documentation bigger
- show the doc by default

Nicolas Petton 10 years ago
parent
commit
5ab0ed58f9
4 changed files with 12 additions and 11 deletions
  1. 4 2
      css/helios.css
  2. 2 2
      css/helios.less
  3. 4 4
      js/Helios-Browser.js
  4. 2 3
      st/Helios-Browser.st

+ 4 - 2
css/helios.css

@@ -743,8 +743,10 @@ body[id="helios"] .button:focus {
 body[id="helios"] .doc {
   background: white;
 }
-body[id="helios"] .doc code .doc pre {
-  font-size: 11px;
+body[id="helios"] .doc code .doc pre,
+body[id="helios"] .doc p,
+body[id="helios"] .doc div {
+  font-size: 13px;
 }
 body[id="helios"] .doc code {
   padding: 1px 4px;

+ 2 - 2
css/helios.less

@@ -847,8 +847,8 @@ body[id="helios"] {
 		background: white;
 	}
 
-	.doc code .doc pre {
-		font-size: 11px;
+	.doc code .doc pre, .doc p, .doc div {
+		font-size: 13px;
 	}
 
 	.doc code {

+ 4 - 4
js/Helios-Browser.js

@@ -844,14 +844,14 @@ return smalltalk.withContext(function($ctx1) {
 var $2,$1;
 $2=self["@showComment"];
 if(($receiver = $2) == nil || $receiver == null){
-$1=false;
+$1=true;
 } else {
 $1=$2;
 };
 return $1;
 }, function($ctx1) {$ctx1.fill(self,"showComment",{},globals.HLBrowserModel)})},
 args: [],
-source: "showComment\x0a\x09^ showComment ifNil: [ false ]",
+source: "showComment\x0a\x09^ showComment ifNil: [ true ]",
 messageSends: ["ifNil:"],
 referencedClasses: []
 }),
@@ -2128,10 +2128,10 @@ selector: "defaultDocumentation",
 protocol: 'defaults',
 fn: function (){
 var self=this;
-return "No documentation available. \x0a**That's bad. Seriously.**";
+return "No documentation is available for this class.";
 },
 args: [],
-source: "defaultDocumentation\x0a\x09^ 'No documentation available. \x0a**That''s bad. Seriously.**'",
+source: "defaultDocumentation\x0a\x09^ 'No documentation is available for this class.'",
 messageSends: [],
 referencedClasses: []
 }),

+ 2 - 3
st/Helios-Browser.st

@@ -231,7 +231,7 @@ HLToolModel subclass: #HLBrowserModel
 !HLBrowserModel methodsFor: 'accessing'!
 
 showComment
-	^ showComment ifNil: [ false ]
+	^ showComment ifNil: [ true ]
 !
 
 showComment: aBoolean
@@ -799,8 +799,7 @@ unregister
 !HLDocumentationWidget methodsFor: 'defaults'!
 
 defaultDocumentation
-	^ 'No documentation available. 
-**That''s bad. Seriously.**'
+	^ 'No documentation is available for this class.'
 !
 
 defaultHead