9
0
mirror of https://gitee.com/shuto/customCamera.git synced 2026-05-02 00:07:24 +08:00

Changement de la couleur de fond du bouton camera via le JS.

This commit is contained in:
Thomas BOY
2015-01-14 12:27:44 +01:00
parent 80c135419a
commit d0ea0d5950
45 changed files with 156 additions and 19 deletions
+7 -2
View File
@@ -17,7 +17,10 @@ var customCameraExport = function() {
customCameraExport.prototype.startCamera = function(options, successFct, failFct) {
var defaultOptions = {
imgBackgroundBase64: null, // background picture in base64.
miniature: true // active or disable the miniature function.
miniature: true, // active or disable the miniature function.
cameraBackgroundColor: "#e26760", // color of the camera button.
cameraBackgroundColorPressed: "#dc453d" // color of the pressed camera button.
// To get supported color formats, go to see method parseColor : http://developer.android.com/reference/android/graphics/Color.html#parseColor(java.lang.String)
};
for (var nameOption in defaultOptions) {
@@ -41,7 +44,9 @@ customCameraExport.prototype.startCamera = function(options, successFct, failFct
"startCamera",
[
options.imgBackgroundBase64,
options.miniature
options.miniature,
options.cameraBackgroundColor,
options.cameraBackgroundColorPressed
]
);
};