Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
ad4eec20
Commit
ad4eec20
authored
7 years ago
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected/changed settings initialisation of grid parameters
parent
4ca97d5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
OpenBoard.config
resources/etc/OpenBoard.config
+2
-2
UBPreferencesController.cpp
src/core/UBPreferencesController.cpp
+15
-5
UBSettings.cpp
src/core/UBSettings.cpp
+3
-3
No files found.
resources/etc/OpenBoard.config
View file @
ad4eec20
...
...
@@ -25,13 +25,13 @@ UseSystemOnScreenKeyboard=true
[
Board
]
AutoSaveIntervalInMinutes
=
3
CrossColorDarkBackground
=
#C8
2C2C2C
CrossColorDarkBackground
=
#C8
C0C0C0
CrossColorLightBackground
=
#A5E1FF
DarkBackground
=
0
DefaultPageSize
=@
Size
(
1280
960
)
EraserCircleWidthIndex
=
1
FeatureSliderPosition
=
40
GridDarkBackgroundColors
=
#FFFFFF, #FF3400, #66C0FF, #81FF5C, #FFFF00, #B68360, #FF497E, #8D69FF, #C8
2C2C2C
GridDarkBackgroundColors
=
#FFFFFF, #FF3400, #66C0FF, #81FF5C, #FFFF00, #B68360, #FF497E, #8D69FF, #C8
C0C0C0
GridLightBackgroundColors
=
#000000, #FF0000, #004080, #008000, #FFDD00, #C87400, #800040, #008080, #5F2D0A, #A5E1FF
InterpolateMarkerStrokes
=
true
InterpolatePenStrokes
=
true
...
...
This diff is collapsed.
Click to expand it.
src/core/UBPreferencesController.cpp
View file @
ad4eec20
...
...
@@ -100,10 +100,6 @@ UBPreferencesController::~UBPreferencesController()
delete
mPenProperties
;
delete
mMarkerProperties
;
delete
mDarkBackgroundGridColorPicker
;
delete
mLightBackgroundGridColorPicker
;
}
void
UBPreferencesController
::
adjustScreens
(
int
screen
)
...
...
@@ -158,6 +154,21 @@ void UBPreferencesController::wire()
//grid tab
//On light background
QPalette
lightBackgroundPalette
=
QApplication
::
palette
();
lightBackgroundPalette
.
setColor
(
QPalette
::
Window
,
Qt
::
white
);
mPreferencesUI
->
crossColorLightBackgroundFrame
->
setAutoFillBackground
(
true
);
mPreferencesUI
->
crossColorLightBackgroundFrame
->
setPalette
(
lightBackgroundPalette
);
QPalette
darkBackgroundPalette
=
QApplication
::
palette
();
darkBackgroundPalette
.
setColor
(
QPalette
::
Window
,
Qt
::
black
);
darkBackgroundPalette
.
setColor
(
QPalette
::
ButtonText
,
Qt
::
white
);
darkBackgroundPalette
.
setColor
(
QPalette
::
WindowText
,
Qt
::
white
);
mPreferencesUI
->
crossColorDarkBackgroundFrame
->
setAutoFillBackground
(
true
);
mPreferencesUI
->
crossColorDarkBackgroundFrame
->
setPalette
(
darkBackgroundPalette
);
mPreferencesUI
->
crossColorDarkBackgroundLabel
->
setPalette
(
darkBackgroundPalette
);
QList
<
QColor
>
gridLightBackgroundColors
=
settings
->
boardGridLightBackgroundColors
->
colors
();
QColor
selectedCrossColorLightBackground
(
settings
->
boardCrossColorLightBackground
->
get
().
toString
());
...
...
@@ -381,7 +392,6 @@ void UBPreferencesController::defaultSettings()
mPreferencesUI
->
webHomePage
->
setText
(
settings
->
webHomePage
->
reset
().
toString
());
}
}
void
UBPreferencesController
::
darkBackgroundCrossOpacityValueChanged
(
int
value
)
...
...
This diff is collapsed.
Click to expand it.
src/core/UBSettings.cpp
View file @
ad4eec20
...
...
@@ -286,15 +286,15 @@ void UBSettings::init()
pageSize
=
new
UBSetting
(
this
,
"Board"
,
"DefaultPageSize"
,
documentSizes
.
value
(
DocumentSizeRatio
::
Ratio4_3
));
boardCrossColorDarkBackground
=
new
UBSetting
(
this
,
"Board"
,
"CrossColorDarkBackground"
,
"#C8
2C2C2C
"
);
boardCrossColorDarkBackground
=
new
UBSetting
(
this
,
"Board"
,
"CrossColorDarkBackground"
,
"#C8
C0C0C0
"
);
boardCrossColorLightBackground
=
new
UBSetting
(
this
,
"Board"
,
"CrossColorLightBackground"
,
"#A5E1FF"
);
QStringList
gridLightBackgroundColors
;
gridLightBackgroundColors
<<
"#
FFFFFF"
<<
"#FF3400"
<<
"#66C0FF"
<<
"#81FF5C"
<<
"#FFFF00"
<<
"#B68360"
<<
"#FF497E"
<<
"#8D69FF"
<<
"#C82C2C2C
"
;
gridLightBackgroundColors
<<
"#
000000"
<<
"#FF0000"
<<
"#004080"
<<
"#008000"
<<
"#FFDD00"
<<
"#C87400"
<<
"#800040"
<<
"#008080"
<<
"#A5E1FF
"
;
boardGridLightBackgroundColors
=
new
UBColorListSetting
(
this
,
"Board"
,
"GridLightBackgroundColors"
,
gridLightBackgroundColors
,
-
1.0
);
QStringList
gridDarkBackgroundColors
;
gridDarkBackgroundColors
<<
"#
000000"
<<
"#FF0000"
<<
"#004080"
<<
"#008000"
<<
"#FFDD00"
<<
"#C87400"
<<
"#800040"
<<
"#008080"
<<
"#A5E1FF
"
;
gridDarkBackgroundColors
<<
"#
FFFFFF"
<<
"#FF3400"
<<
"#66C0FF"
<<
"#81FF5C"
<<
"#FFFF00"
<<
"#B68360"
<<
"#FF497E"
<<
"#8D69FF"
<<
"#C8C0C0C0
"
;
boardGridDarkBackgroundColors
=
new
UBColorListSetting
(
this
,
"Board"
,
"GridDarkBackgroundColors"
,
gridDarkBackgroundColors
,
-
1.0
);
QStringList
penLightBackgroundColors
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment