Impression Mitsubishi K60 + cadres + interface admin distante
- Intégration selphy_print (backend CUPS dyesub Mitsubishi CP-K60DW-S) - Formats impression : 15x20, 10x15, 10x15 2-strips avec cadre et orientation portrait/paysage - Cadres d'impression par format (strip/10x15/15x20) : upload, sélection, aperçu live - Cadres démo générés : pellicule noir/vintage/couleurs + bordures classique/doré/rose gold - Écran de choix de cadre avant capture (clic direct, aperçu grand format) - Filtres réduits à 3 (Couleur, N&B, Sépia) et appliqués sur tous les strips - Port 80 via authbind, route /admin avec redirection auto depuis poste distant - Autologin LightDM corrigé (pam-autologin-service) - Bouton évacuer bourrage papier dans admin - Fix : _gp_lock manquant dans Camera.__init__ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -398,6 +398,7 @@ html, body {
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
max-height: 65vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.preview-photo-container img {
|
||||
@@ -407,6 +408,17 @@ html, body {
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
|
||||
.cadre-overlay {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
pointer-events: none;
|
||||
border-radius: var(--rayon);
|
||||
}
|
||||
|
||||
.barre-fonds {
|
||||
display: flex;
|
||||
gap: 0.8rem;
|
||||
@@ -1120,6 +1132,165 @@ h3 {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* --- Cadres impression --- */
|
||||
.cadres-formats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 1.2rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.cadres-format-bloc {
|
||||
background: var(--fond);
|
||||
border-radius: 10px;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.cadres-format-bloc h4 {
|
||||
margin: 0 0 0.8rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--texte-secondaire);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.cadres-liste {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
|
||||
.cadre-imp-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
padding: 0.5rem 0.7rem;
|
||||
background: var(--fond-secondaire, #1a1a2e);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cadre-imp-item input[type="radio"] {
|
||||
accent-color: var(--primaire);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cadre-imp-item .cadre-preview {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cadre-imp-item span {
|
||||
flex: 1;
|
||||
font-size: 0.85rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cadre-imp-item .btn-icone {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--danger);
|
||||
cursor: pointer;
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cadre-imp-item .btn-icone:hover {
|
||||
background: rgba(244, 67, 54, 0.15);
|
||||
}
|
||||
|
||||
.cadres-upload {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.cadres-upload .input-fichier {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 0.4rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* --- Fin cadres impression --- */
|
||||
|
||||
/* --- Choix cadre avant capture --- */
|
||||
#ecran-cadre-choix {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.grille-cadres-choix {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1.5rem;
|
||||
justify-content: center;
|
||||
overflow-y: auto;
|
||||
max-height: 70vh;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.cadre-choix-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
border-radius: 14px;
|
||||
border: 4px solid transparent;
|
||||
background: transparent;
|
||||
transition: border-color 0.15s, transform 0.15s;
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
.cadre-choix-item:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.cadre-choix-item img {
|
||||
width: 140px;
|
||||
height: 210px;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
background: #111;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.cadre-choix-item span {
|
||||
font-size: 0.85rem;
|
||||
text-align: center;
|
||||
color: var(--texte-secondaire);
|
||||
}
|
||||
|
||||
.cadre-choix-aucun .cadre-choix-vide {
|
||||
width: 140px;
|
||||
height: 210px;
|
||||
border-radius: 10px;
|
||||
border: 3px dashed rgba(255,255,255,0.2);
|
||||
background: rgba(255,255,255,0.04);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 2.5rem;
|
||||
color: rgba(255,255,255,0.2);
|
||||
}
|
||||
|
||||
.input-fichier {
|
||||
background: var(--fond);
|
||||
border: 2px dashed #444;
|
||||
|
||||
Reference in New Issue
Block a user