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
63b17420
Commit
63b17420
authored
Dec 16, 2015
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a 5th pen color (yellow by default)
parent
3dc320d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
mainWindow.ui
resources/forms/mainWindow.ui
+9
-0
UBBoardController.cpp
src/board/UBBoardController.cpp
+1
-0
UBSettings.cpp
src/core/UBSettings.cpp
+2
-2
UBDesktopPropertyPalette.cpp
src/desktop/UBDesktopPropertyPalette.cpp
+2
-0
No files found.
resources/forms/mainWindow.ui
View file @
63b17420
...
...
@@ -445,6 +445,15 @@
<string>
Color
</string>
</property>
</action>
<action
name=
"actionColor4"
>
<property
name=
"icon"
>
<iconset
resource=
"../OpenBoard.qrc"
>
<normaloff>
:/images/toolbar/color.png
</normaloff>
:/images/toolbar/color.png
</iconset>
</property>
<property
name=
"text"
>
<string>
Color
</string>
</property>
</action>
<action
name=
"actionWebBack"
>
<property
name=
"icon"
>
<iconset
resource=
"../OpenBoard.qrc"
>
...
...
src/board/UBBoardController.cpp
View file @
63b17420
...
...
@@ -291,6 +291,7 @@ void UBBoardController::setupToolbar()
colorActions
.
append
(
mMainWindow
->
actionColor1
);
colorActions
.
append
(
mMainWindow
->
actionColor2
);
colorActions
.
append
(
mMainWindow
->
actionColor3
);
colorActions
.
append
(
mMainWindow
->
actionColor4
);
UBToolbarButtonGroup
*
colorChoice
=
new
UBToolbarButtonGroup
(
mMainWindow
->
boardToolBar
,
colorActions
);
...
...
src/core/UBSettings.cpp
View file @
63b17420
...
...
@@ -45,7 +45,7 @@ QPointer<UBSettings> UBSettings::sSingleton = 0;
int
UBSettings
::
pointerDiameter
=
40
;
int
UBSettings
::
crossSize
=
32
;
int
UBSettings
::
colorPaletteSize
=
4
;
int
UBSettings
::
colorPaletteSize
=
5
;
int
UBSettings
::
objectFrameWidth
=
20
;
int
UBSettings
::
boardMargin
=
10
;
...
...
@@ -265,7 +265,7 @@ void UBSettings::init()
pageDpi
=
new
UBSetting
(
this
,
"Board"
,
"pageDpi"
,
0
);
QStringList
penLightBackgroundColors
;
penLightBackgroundColors
<<
"#000000"
<<
"#FF0000"
<<
"#004080"
<<
"#008000"
<<
"#C87400"
<<
"#800040"
<<
"#008080"
<<
"#5F2D0A"
;
penLightBackgroundColors
<<
"#000000"
<<
"#FF0000"
<<
"#004080"
<<
"#008000"
<<
"#
FFFF00"
<<
"#
C87400"
<<
"#800040"
<<
"#008080"
<<
"#5F2D0A"
;
boardPenLightBackgroundColors
=
new
UBColorListSetting
(
this
,
"Board"
,
"PenLightBackgroundColors"
,
penLightBackgroundColors
,
1.0
);
QStringList
penDarkBackgroundColors
;
...
...
src/desktop/UBDesktopPropertyPalette.cpp
View file @
63b17420
...
...
@@ -55,6 +55,7 @@ UBDesktopPenPalette::UBDesktopPenPalette(QWidget *parent, UBRightPalette* rightP
colorActions
.
append
(
UBApplication
::
mainWindow
->
actionColor1
);
colorActions
.
append
(
UBApplication
::
mainWindow
->
actionColor2
);
colorActions
.
append
(
UBApplication
::
mainWindow
->
actionColor3
);
colorActions
.
append
(
UBApplication
::
mainWindow
->
actionColor4
);
UBToolbarButtonGroup
*
colorChoice
=
new
UBToolbarButtonGroup
(
UBApplication
::
mainWindow
->
boardToolBar
,
colorActions
);
...
...
@@ -151,6 +152,7 @@ UBDesktopMarkerPalette::UBDesktopMarkerPalette(QWidget *parent, UBRightPalette*
colorActions
.
append
(
UBApplication
::
mainWindow
->
actionColor1
);
colorActions
.
append
(
UBApplication
::
mainWindow
->
actionColor2
);
colorActions
.
append
(
UBApplication
::
mainWindow
->
actionColor3
);
colorActions
.
append
(
UBApplication
::
mainWindow
->
actionColor4
);
UBToolbarButtonGroup
*
colorChoice
=
new
UBToolbarButtonGroup
(
UBApplication
::
mainWindow
->
boardToolBar
,
colorActions
);
colorChoice
->
displayText
(
false
);
...
...
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