Author: rmottola
Date: Sun Mar 22 19:26:50 2015
New Revision: 38421
URL: http://svn.gna.org/viewcvs/gnustep?rev=38421&view=rev
Log:
Actually use the background color preference
Modified:
apps/projectcenter/trunk/ChangeLog
apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditor.m
Modified: apps/projectcenter/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=38421&r1=38420&r2=38421&view=diff
==============================================================================
--- apps/projectcenter/trunk/ChangeLog (original)
+++ apps/projectcenter/trunk/ChangeLog Sun Mar 22 19:26:50 2015
@@ -1,3 +1,8 @@
+2015-03-22 Riccardo Mottola <[email protected]>
+
+ * Modules/Editors/ProjectCenter/PCEditor.m
+ Actually use the background color preference.
+
2015-03-22 Riccardo Mottola <[email protected]>
* Headers/Protocols/Preferences.h
Modified: apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditor.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditor.m?rev=38421&r1=38420&r2=38421&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditor.m
(original)
+++ apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditor.m Sun Mar
22 19:26:50 2015
@@ -1,7 +1,7 @@
/*
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
- Copyright (C) 2002-2010 Free Software Foundation
+ Copyright (C) 2002-2015 Free Software Foundation
Authors: Philippe C.D. Robert
Serg Stoyan
@@ -26,6 +26,8 @@
#import "PCEditor.h"
#import "PCEditorView.h"
+
+#import "Modules/Preferences/EditorFSC/PCEditorFSCPrefs.h"
@implementation PCEditor (UInterface)
@@ -260,6 +262,7 @@
NSAttributedString *attributedString = [NSAttributedString alloc];
NSMutableDictionary *attributes = [NSMutableDictionary new];
NSFont *font;
+ id <PCPreferences> prefs;
// Inform about future file opening
[[NSNotificationCenter defaultCenter]
@@ -269,12 +272,23 @@
_editorManager = editorManager;
_path = [filePath copy];
_isEditable = editable;
+ prefs = [[_editorManager projectManager] prefController];
// Prepare
font = [NSFont userFixedPitchFontOfSize:0.0];
if (editable)
{
- textBackground = backgroundColor;
+ NSColor *col;
+ NSString *str;
+
+ str = [prefs stringForKey:EditorBackgroundColor];
+ if (str)
+ {
+ col = [prefs colorFromString:str];
+ }
+ else
+ col = backgroundColor;
+ textBackground = col;
}
else
{
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs